org.apache.catalina.core
public class StandardHost extends ContainerBase implements Host
ContainerBase.ContainerBackgroundProcessor, ContainerBase.PrivilegedAddChild
backgroundProcessorDelay, children, cluster, controller, domain, lifecycle, listeners, loader, logger, logName, manager, mserver, name, oname, parent, parentClassLoader, pipeline, realm, resources, sm, startChildren, started, suffix, support, type
ADD_ALIAS_EVENT, REMOVE_ALIAS_EVENT
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
StandardHost()
Create a new StandardHost component with the default basic Valve.
|
Modifier and Type | Method and Description |
---|---|
void |
addAlias(java.lang.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.
|
javax.management.ObjectName |
createObjectName(java.lang.String domain,
javax.management.ObjectName parent) |
void |
destroy() |
java.lang.String[] |
findAliases()
Return the set of alias names for this Host.
|
java.lang.String[] |
getAliases() |
java.lang.String |
getAppBase()
Return the application root for this Host.
|
boolean |
getAutoDeploy()
Return the value of the auto deploy flag.
|
java.lang.String |
getConfigClass()
Return the Java class name of the context configuration class
for new web applications.
|
java.lang.String |
getContextClass()
Return the Java class name of the Context implementation class
for new web applications.
|
boolean |
getDeployOnStartup()
Return the value of the deploy on startup flag.
|
java.lang.String |
getErrorReportValveClass()
Return the Java class name of the error report valve class
for new web applications.
|
java.lang.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.
|
java.lang.String |
getName()
Return the canonical, fully qualified, name of the virtual host
this Container represents.
|
java.lang.String[] |
getValveNames()
Return the MBean Names of the Valves assoicated with this Host
|
java.lang.String |
getWorkDir()
Host work directory base.
|
boolean |
getXmlNamespaceAware()
Get the server.xml <host> attribute's xmlNamespaceAware.
|
boolean |
getXmlValidation()
Get the server.xml <host> attribute's xmlValidation.
|
void |
init()
Init method, part of the MBean lifecycle.
|
boolean |
isDeployXML()
Deploy XML Context config files flag accessor.
|
boolean |
isUnpackWARs()
Unpack WARs flag accessor.
|
Context |
map(java.lang.String uri)
Return the Context that would be used to process the specified
host-relative request URI, if any; otherwise return
null . |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName oname) |
void |
removeAlias(java.lang.String alias)
Remove the specified alias name from the aliases for this Host.
|
void |
setAppBase(java.lang.String appBase)
Set the application root for this Host.
|
void |
setAutoDeploy(boolean autoDeploy)
Set the auto deploy flag value for this host.
|
void |
setConfigClass(java.lang.String configClass)
Set the Java class name of the context configuration class
for new web applications.
|
void |
setContextClass(java.lang.String contextClass)
Set the Java class name of the Context implementation class
for new web applications.
|
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(java.lang.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(java.lang.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(java.lang.String workDir)
Host work directory base.
|
void |
setXmlNamespaceAware(boolean xmlNamespaceAware)
Set the namespace aware feature of the XML parser used when
parsing xml instances.
|
void |
setXmlValidation(boolean xmlValidation)
Set the validation feature of the XML parser used when
parsing xml instances.
|
void |
start()
Start this host.
|
java.lang.String |
toString()
Return a String representation of this component.
|
addContainerListener, addLifecycleListener, addPropertyChangeListener, addValve, backgroundProcess, findChild, findChildren, findContainerListeners, findLifecycleListeners, fireContainerEvent, getBackgroundProcessorDelay, getBasic, getChildren, getCluster, getContainerSuffix, getDomain, getFirst, getJmxName, getJSR77Suffix, getLoader, getLogger, getManager, getMappingObject, getObjectName, getParent, getParentClassLoader, getParentName, getPipeline, getRealm, getResources, getStartChildren, getType, getValveObjectNames, getValves, invoke, logName, postDeregister, postRegister, preDeregister, removeChild, removeContainerListener, removeLifecycleListener, removePropertyChangeListener, removeValve, setBackgroundProcessorDelay, setBasic, setCluster, setDomain, setLoader, setManager, setParent, setParentClassLoader, setRealm, setResources, setStartChildren, stop, threadStart, threadStop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, getBackgroundProcessorDelay, getCluster, getLoader, getLogger, getManager, getMappingObject, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setParent, setParentClassLoader, setRealm, setResources
public StandardHost()
public java.lang.String getAppBase()
getAppBase
in interface Host
public void setAppBase(java.lang.String appBase)
setAppBase
in interface Host
appBase
- The new application rootpublic boolean getAutoDeploy()
getAutoDeploy
in interface Host
public void setAutoDeploy(boolean autoDeploy)
setAutoDeploy
in interface Host
autoDeploy
- The new auto deploy flagpublic java.lang.String getConfigClass()
getConfigClass
in interface Host
public void setConfigClass(java.lang.String configClass)
setConfigClass
in interface Host
configClass
- The new context configuration classpublic java.lang.String getContextClass()
public void setContextClass(java.lang.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 getLiveDeploy()
appBase
directory, and deploys new ones as they are
encountered.public void setLiveDeploy(boolean liveDeploy)
liveDeploy
- The new live deploy flagpublic java.lang.String getErrorReportValveClass()
public void setErrorReportValveClass(java.lang.String errorReportValveClass)
errorReportValveClass
- The new error report valve classpublic java.lang.String getName()
public void setName(java.lang.String name)
public boolean isUnpackWARs()
public void setUnpackWARs(boolean unpackWARs)
public void setXmlValidation(boolean xmlValidation)
setXmlValidation
in interface Host
xmlValidation
- true to enable xml instance validationpublic boolean getXmlValidation()
getXmlValidation
in interface Host
public boolean getXmlNamespaceAware()
getXmlNamespaceAware
in interface Host
public void setXmlNamespaceAware(boolean xmlNamespaceAware)
setXmlNamespaceAware
in interface Host
xmlNamespaceAware
- true to enable namespace awarenesspublic java.lang.String getWorkDir()
public void setWorkDir(java.lang.String workDir)
public void addAlias(java.lang.String alias)
public void addChild(Container child)
addChild
in interface Container
addChild
in class ContainerBase
child
- Child container to be addedpublic java.lang.String[] findAliases()
findAliases
in interface Host
public java.lang.String getInfo()
<description>/<version>
.getInfo
in interface Container
getInfo
in class ContainerBase
public Context map(java.lang.String uri)
null
.public void removeAlias(java.lang.String alias)
removeAlias
in interface Host
alias
- Alias name to be removedpublic java.lang.String toString()
toString
in class java.lang.Object
public void start() throws LifecycleException
start
in interface Lifecycle
start
in class ContainerBase
LifecycleException
- if this component detects a fatal error
that prevents it from being startedpublic java.lang.String[] getValveNames() throws java.lang.Exception
java.lang.Exception
- if an MBean cannot be created or registeredpublic java.lang.String[] getAliases()
public void init()
ContainerBase
init
in class ContainerBase
public void destroy() throws java.lang.Exception
destroy
in class ContainerBase
java.lang.Exception
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName oname) throws java.lang.Exception
preRegister
in interface javax.management.MBeanRegistration
preRegister
in class ContainerBase
java.lang.Exception
public javax.management.ObjectName createObjectName(java.lang.String domain, javax.management.ObjectName parent) throws java.lang.Exception
createObjectName
in class ContainerBase
java.lang.Exception
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.