Home » apache-tomcat-6.0.26-src » org.apache » catalina » core » [javadoc | source]
org.apache.catalina.core
public class: StandardHost [javadoc | source]
java.lang.Object
   org.apache.catalina.core.ContainerBase
      org.apache.catalina.core.StandardHost

All Implemented Interfaces:
    Host, Pipeline, Serializable, MBeanRegistration, Container, Lifecycle

Standard implementation of the Host interface. Each child container must be a Context implementation to process the requests directed to a particular web application.
Fields inherited from org.apache.catalina.core.ContainerBase:
children,  backgroundProcessorDelay,  lifecycle,  listeners,  loader,  logger,  logName,  manager,  cluster,  name,  parent,  parentClassLoader,  pipeline,  realm,  resources,  sm,  started,  initialized,  startChildren,  support,  type,  domain,  suffix,  oname,  controller,  mserver
Constructor:
 public StandardHost() 
Method from org.apache.catalina.core.StandardHost Summary:
addAlias,   addChild,   createObjectName,   destroy,   findAliases,   findReloadedContextMemoryLeaks,   getAliases,   getAppBase,   getAutoDeploy,   getConfigClass,   getContextClass,   getDeployOnStartup,   getErrorReportValveClass,   getInfo,   getLiveDeploy,   getName,   getValveNames,   getWorkDir,   getXmlNamespaceAware,   getXmlValidation,   init,   isDeployXML,   isUnpackWARs,   map,   preRegister,   removeAlias,   setAppBase,   setAutoDeploy,   setConfigClass,   setContextClass,   setDeployOnStartup,   setDeployXML,   setErrorReportValveClass,   setLiveDeploy,   setName,   setUnpackWARs,   setWorkDir,   setXmlNamespaceAware,   setXmlValidation,   start,   toString
Methods from org.apache.catalina.core.ContainerBase:
addChild,   addContainerListener,   addLifecycleListener,   addPropertyChangeListener,   addValve,   backgroundProcess,   createObjectName,   destroy,   findChild,   findChildren,   findContainerListeners,   findLifecycleListeners,   fireContainerEvent,   getBackgroundProcessorDelay,   getBasic,   getChildren,   getCluster,   getContainerSuffix,   getDomain,   getFirst,   getInfo,   getJSR77Suffix,   getJmxName,   getLoader,   getLogger,   getManager,   getMappingObject,   getName,   getObjectName,   getParent,   getParentClassLoader,   getParentName,   getPipeline,   getRealm,   getResources,   getStartChildren,   getType,   getValveObjectNames,   getValves,   init,   invoke,   logName,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeChild,   removeContainerListener,   removeLifecycleListener,   removePropertyChangeListener,   removeValve,   setBackgroundProcessorDelay,   setBasic,   setCluster,   setDomain,   setLoader,   setManager,   setName,   setParent,   setParentClassLoader,   setRealm,   setResources,   setStartChildren,   start,   stop,   threadStart,   threadStop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.core.StandardHost Detail:
 public  void addAlias(String alias) 
    Add an alias name that should be mapped to this same Host.
 public  void addChild(Container child) 
    Add a child Container, only if the proposed child is an implementation of Context.
 public ObjectName createObjectName(String domain,
    ObjectName parent) throws Exception 
 public  void destroy() throws Exception 
 public String[] findAliases() 
    Return the set of alias names for this Host. If none are defined, a zero length array is returned.
 public String[] findReloadedContextMemoryLeaks() 
    Attempt to identify the contexts that have a class loader memory leak. This is usually triggered on context reload. Note: This method attempts to force a full garbage collection. This should be used with extreme caution on a production system.
 public String[] getAliases() 
 public String getAppBase() 
    Return the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
 public boolean getAutoDeploy() 
    Return the value of the auto deploy flag. If true, it indicates that this host's child webapps will be dynamically deployed.
 public String getConfigClass() 
    Return the Java class name of the context configuration class for new web applications.
 public String getContextClass() 
    Return the Java class name of the Context implementation class for new web applications.
 public boolean getDeployOnStartup() 
    Return the value of the deploy on startup flag. If true, it indicates that this host's child webapps should be discovred and automatically deployed at startup time.
 public String getErrorReportValveClass() 
    Return the Java class name of the error report valve class for new web applications.
 public String getInfo() 
    Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version>.
 public boolean getLiveDeploy() 
    Return the value of the live deploy flag. If true, it indicates that a background thread should be started that looks for web application context files, WAR files, or unpacked directories being dropped in to the appBase directory, and deploys new ones as they are encountered.
 public String getName() 
    Return the canonical, fully qualified, name of the virtual host this Container represents.
 public String[] getValveNames() throws Exception 
    Return the MBean Names of the Valves assoicated with this Host
 public String getWorkDir() 
    Host work directory base.
 public boolean getXmlNamespaceAware() 
    Get the server.xml <host> attribute's xmlNamespaceAware.
 public boolean getXmlValidation() 
    Get the server.xml <host> attribute's xmlValidation.
 public  void init() 
 public boolean isDeployXML() 
    Deploy XML Context config files flag accessor.
 public boolean isUnpackWARs() 
    Unpack WARs flag accessor.
 public Context map(String uri) 
    Return the Context that would be used to process the specified host-relative request URI, if any; otherwise return null.
 public ObjectName preRegister(MBeanServer server,
    ObjectName oname) throws Exception 
 public  void removeAlias(String alias) 
    Remove the specified alias name from the aliases for this Host.
 public  void setAppBase(String appBase) 
    Set the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
 public  void setAutoDeploy(boolean autoDeploy) 
    Set the auto deploy flag value for this host.
 public  void setConfigClass(String configClass) 
    Set the Java class name of the context configuration class for new web applications.
 public  void setContextClass(String contextClass) 
    Set the Java class name of the Context implementation class for new web applications.
 public  void setDeployOnStartup(boolean deployOnStartup) 
    Set the deploy on startup flag value for this host.
 public  void setDeployXML(boolean deployXML) 
    Deploy XML Context config files flag mutator.
 public  void setErrorReportValveClass(String errorReportValveClass) 
    Set the Java class name of the error report valve class for new web applications.
 public  void setLiveDeploy(boolean liveDeploy) 
    Set the live deploy flag value for this host.
 public  void setName(String name) 
    Set the canonical, fully qualified, name of the virtual host this Container represents.
 public  void setUnpackWARs(boolean unpackWARs) 
    Unpack WARs flag mutator.
 public  void setWorkDir(String workDir) 
    Host work directory base.
 public  void setXmlNamespaceAware(boolean xmlNamespaceAware) 
    Set the namespace aware feature of the XML parser used when parsing xml instances.
 public  void setXmlValidation(boolean xmlValidation) 
    Set the validation feature of the XML parser used when parsing xml instances.
 public synchronized  void start() throws LifecycleException 
    Start this host.
 public String toString() 
    Return a String representation of this component.