public class TomcatHelper
extends java.lang.Object
Constructor and Description |
---|
TomcatHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
configureJarScanner(Context standardContext) |
static int |
getContextState(StandardContext standardContext) |
static StandardServer |
getServer() |
static boolean |
hasRole(Realm realm,
java.security.Principal tomcatPrincipal,
java.lang.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(StandardServer server) |
static void |
setStopping(boolean stopping) |
public static boolean isStopping()
public static void setServer(StandardServer server)
public static void setStopping(boolean stopping)
public static StandardServer getServer()
public static int getContextState(StandardContext standardContext)
public static boolean hasRole(Realm realm, java.security.Principal tomcatPrincipal, java.lang.String logicalRole)
realm
- tomcatPrincipal
- logicalRole
- public static boolean isTomcat7()
public static void configureJarScanner(Context standardContext)