Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » util » [javadoc | source]
com.opensymphony.module.sitemesh.util
public final class: Container [javadoc | source]
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) { .... }
Field Summary
public static final  int UNKNOWN     
public static final  int TOMCAT     
public static final  int RESIN     
public static final  int ORION     
public static final  int WEBLOGIC     
public static final  int HPAS     
public static final  int JRUN     
public static final  int WEBSPHERE     
Method from com.opensymphony.module.sitemesh.util.Container Summary:
get
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.util.Container Detail:
 public static int get() 
    Get the current container.