Class Container
java.lang.Object
com.opensymphony.module.sitemesh.util.Container
Utility for determining the Servlet Container the application is running in. Currently supported containers: Tomcat,
Resin, Orion, OC4J, WebLogic, HPAS, JRun, Websphere.
Usage:
if (Container.get() == Container.TOMCAT) { .... }- Author:
- Joe Walnes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe Constant HPAS.static final intThe Constant JRUN.static final intThe Constant ORION.static final intThe Constant RESIN.static final intThe Constant TOMCAT.static final intThe Constant UNKNOWN.static final intThe Constant WEBLOGIC.static final intThe Constant WEBSPHERE. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
UNKNOWN
public static final int UNKNOWNThe Constant UNKNOWN.- See Also:
-
TOMCAT
public static final int TOMCATThe Constant TOMCAT.- See Also:
-
RESIN
public static final int RESINThe Constant RESIN.- See Also:
-
ORION
public static final int ORIONThe Constant ORION.- See Also:
-
WEBLOGIC
public static final int WEBLOGICThe Constant WEBLOGIC.- See Also:
-
HPAS
public static final int HPASThe Constant HPAS.- See Also:
-
JRUN
public static final int JRUNThe Constant JRUN.- See Also:
-
WEBSPHERE
public static final int WEBSPHEREThe Constant WEBSPHERE.- See Also:
-
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
get
public static int get()Get the current container.- Returns:
- the int
-