|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.catalina.util.LifecycleBase
org.apache.catalina.util.LifecycleMBeanBase
org.apache.catalina.core.ContainerBase
org.apache.catalina.core.StandardHost
public class StandardHost
Standard implementation of the Host interface. Each child container must be a Context implementation to process the requests directed to a particular web application.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.catalina.core.ContainerBase |
---|
ContainerBase.ContainerBackgroundProcessor, ContainerBase.NoopAccessLog, ContainerBase.PrivilegedAddChild |
Field Summary |
---|
Fields inherited from class org.apache.catalina.core.ContainerBase |
---|
accessLog, backgroundProcessorDelay, children, cluster, listeners, loader, logger, logName, manager, name, parent, parentClassLoader, pipeline, realm, resources, sm, startChildren, support |
Fields inherited from class org.apache.catalina.util.LifecycleMBeanBase |
---|
mserver |
Fields inherited from interface org.apache.catalina.Host |
---|
ADD_ALIAS_EVENT, REMOVE_ALIAS_EVENT |
Fields inherited from interface org.apache.catalina.Container |
---|
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, DESTROY_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
---|---|
StandardHost()
Create a new StandardHost component with the default basic Valve. |
Method Summary | |
---|---|
void |
addAlias(String alias)
Add an alias name that should be mapped to this same Host. |
void |
addChild(Container child)
Add a child Container, only if the proposed child is an implementation of Context. |
String[] |
findAliases()
Return the set of alias names for this Host. |
String[] |
findReloadedContextMemoryLeaks()
Attempt to identify the contexts that have a class loader memory leak. |
String[] |
getAliases()
|
String |
getAppBase()
Return the application root for this Host. |
boolean |
getAutoDeploy()
Return the value of the auto deploy flag. |
String |
getConfigClass()
Return the Java class name of the context configuration class for new web applications. |
String |
getContextClass()
Return the Java class name of the Context implementation class for new web applications. |
boolean |
getCreateDirs()
Returns true if the Host will attempt to create directories for appBase and xmlBase unless they already exist. |
boolean |
getDeployOnStartup()
Return the value of the deploy on startup flag. |
String |
getErrorReportValveClass()
Return the Java class name of the error report valve class for new web applications. |
String |
getInfo()
Return descriptive information about this Container implementation and the corresponding version number, in the format <description>/<version> . |
boolean |
getLiveDeploy()
Return the value of the live deploy flag. |
String |
getName()
Return the canonical, fully qualified, name of the virtual host this Container represents. |
protected String |
getObjectNameKeyProperties()
Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component. |
String[] |
getValveNames()
Return the MBean Names of the Valves associated with this Host |
String |
getWorkDir()
Host work directory base. |
String |
getXmlBase()
Return the XML root for this Host. |
boolean |
isCopyXML()
Return the copy XML config file flag for this component. |
boolean |
isDeployXML()
Deploy XML Context config files flag accessor. |
boolean |
isUnpackWARs()
Unpack WARs flag accessor. |
Context |
map(String uri)
Return the Context that would be used to process the specified host-relative request URI, if any; otherwise return null . |
void |
removeAlias(String alias)
Remove the specified alias name from the aliases for this Host. |
void |
setAppBase(String appBase)
Set the application root for this Host. |
void |
setAutoDeploy(boolean autoDeploy)
Set the auto deploy flag value for this host. |
void |
setConfigClass(String configClass)
Set the Java class name of the context configuration class for new web applications. |
void |
setContextClass(String contextClass)
Set the Java class name of the Context implementation class for new web applications. |
void |
setCopyXML(boolean copyXML)
Set the copy XML config file flag for this component. |
void |
setCreateDirs(boolean createDirs)
Set to true if the Host should attempt to create directories for xmlBase and appBase upon startup |
void |
setDeployOnStartup(boolean deployOnStartup)
Set the deploy on startup flag value for this host. |
void |
setDeployXML(boolean deployXML)
Deploy XML Context config files flag mutator. |
void |
setErrorReportValveClass(String errorReportValveClass)
Set the Java class name of the error report valve class for new web applications. |
void |
setLiveDeploy(boolean liveDeploy)
Set the live deploy flag value for this host. |
void |
setName(String name)
Set the canonical, fully qualified, name of the virtual host this Container represents. |
void |
setUnpackWARs(boolean unpackWARs)
Unpack WARs flag mutator. |
void |
setWorkDir(String workDir)
Host work directory base. |
void |
setXmlBase(String xmlBase)
Set the Xml root for this Host. |
protected void |
startInternal()
Start this component and implement the requirements of LifecycleBase.startInternal() . |
String |
toString()
Return a String representation of this component. |
Methods inherited from class org.apache.catalina.util.LifecycleMBeanBase |
---|
getDomain, getObjectName, initInternal, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister |
Methods inherited from class org.apache.catalina.util.LifecycleBase |
---|
addLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, init, removeLifecycleListener, setState, setState, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.catalina.Lifecycle |
---|
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop |
Constructor Detail |
---|
public StandardHost()
Method Detail |
---|
public String getAppBase()
getAppBase
in interface Host
public String getXmlBase()
getXmlBase
in interface Host
public void setAppBase(String appBase)
setAppBase
in interface Host
appBase
- The new application rootpublic void setXmlBase(String xmlBase)
setXmlBase
in interface Host
xmlBase
- The new XML rootpublic boolean getCreateDirs()
getCreateDirs
in interface Host
public void setCreateDirs(boolean createDirs)
setCreateDirs
in interface Host
createDirs
- public boolean getAutoDeploy()
getAutoDeploy
in interface Host
public void setAutoDeploy(boolean autoDeploy)
setAutoDeploy
in interface Host
autoDeploy
- The new auto deploy flagpublic String getConfigClass()
getConfigClass
in interface Host
public void setConfigClass(String configClass)
setConfigClass
in interface Host
configClass
- The new context configuration classpublic String getContextClass()
public void setContextClass(String contextClass)
contextClass
- The new context implementation classpublic boolean getDeployOnStartup()
getDeployOnStartup
in interface Host
public void setDeployOnStartup(boolean deployOnStartup)
setDeployOnStartup
in interface Host
deployOnStartup
- The new deploy on startup flagpublic boolean isDeployXML()
public void setDeployXML(boolean deployXML)
public boolean isCopyXML()
public void setCopyXML(boolean copyXML)
copyXML
- The new copy XML flagpublic boolean getLiveDeploy()
appBase
directory, and deploys new ones as they are
encountered.
public void setLiveDeploy(boolean liveDeploy)
liveDeploy
- The new live deploy flagpublic String getErrorReportValveClass()
public void setErrorReportValveClass(String errorReportValveClass)
errorReportValveClass
- The new error report valve classpublic String getName()
getName
in interface Container
getName
in class ContainerBase
public void setName(String name)
setName
in interface Container
setName
in class ContainerBase
name
- Virtual host name
IllegalArgumentException
- if name is nullpublic boolean isUnpackWARs()
public void setUnpackWARs(boolean unpackWARs)
public String getWorkDir()
public void setWorkDir(String workDir)
public void addAlias(String alias)
addAlias
in interface Host
alias
- The alias to be addedpublic void addChild(Container child)
addChild
in interface Container
addChild
in class ContainerBase
child
- Child container to be addedpublic String[] findReloadedContextMemoryLeaks()
public String[] findAliases()
findAliases
in interface Host
public String getInfo()
<description>/<version>
.
getInfo
in interface Container
getInfo
in class ContainerBase
public Context map(String uri)
null
.
map
in interface Host
uri
- Request URI to be mappedpublic void removeAlias(String alias)
removeAlias
in interface Host
alias
- Alias name to be removedpublic String toString()
toString
in class Object
protected void startInternal() throws LifecycleException
LifecycleBase.startInternal()
.
startInternal
in class ContainerBase
LifecycleException
- if this component detects a fatal error
that prevents this component from being usedpublic String[] getValveNames() throws Exception
Exception
- if an MBean cannot be created or registeredpublic String[] getAliases()
protected String getObjectNameKeyProperties()
LifecycleMBeanBase
ObjectName
that will be used to register this component.
getObjectNameKeyProperties
in class LifecycleMBeanBase
ObjectName
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |