org.apache.tomee.loader
Class TomcatHelper
java.lang.Object
org.apache.tomee.loader.TomcatHelper
public class TomcatHelper
- extends Object
|
Method Summary |
static void |
configureJarScanner(org.apache.catalina.Context standardContext)
|
static int |
getContextState(org.apache.catalina.core.StandardContext standardContext)
|
static org.apache.catalina.core.StandardServer |
getServer()
|
static boolean |
hasRole(org.apache.catalina.Realm realm,
Principal tomcatPrincipal,
String logicalRole)
Helper method to call the correct org.apache.catalina.Realm.hasRole method based on the Tomcat version |
static boolean |
isStopping()
|
static boolean |
isTomcat7()
|
static void |
setServer(org.apache.catalina.core.StandardServer server)
|
static void |
setStopping(boolean stopping)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TomcatHelper
public TomcatHelper()
isStopping
public static boolean isStopping()
setServer
public static void setServer(org.apache.catalina.core.StandardServer server)
setStopping
public static void setStopping(boolean stopping)
getServer
public static org.apache.catalina.core.StandardServer getServer()
getContextState
public static int getContextState(org.apache.catalina.core.StandardContext standardContext)
hasRole
public static boolean hasRole(org.apache.catalina.Realm realm,
Principal tomcatPrincipal,
String logicalRole)
- Helper method to call the correct org.apache.catalina.Realm.hasRole method based on the Tomcat version
- Parameters:
realm - tomcatPrincipal - logicalRole -
- Returns:
- true the the principle has the specified role
isTomcat7
public static boolean isTomcat7()
configureJarScanner
public static void configureJarScanner(org.apache.catalina.Context standardContext)
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.