org.apache.catalina.core
public class StandardHost extends ContainerBase implements Host
Version: $Revision: 784615 $ $Date: 2009-06-14 22:39:30 +0200 (Sun, 14 Jun 2009) $
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.
|
ObjectName | createObjectName(String domain, ObjectName parent) |
void | destroy() |
String[] | findAliases()
Return the set of alias names for this Host. |
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 | 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. |
String[] | getValveNames()
Return the MBean Names of the Valves assoicated with this Host
|
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() |
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 .
|
ObjectName | preRegister(MBeanServer server, ObjectName oname) |
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 | 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 | 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.
|
String | toString()
Return a String representation of this component. |
Parameters: alias The alias to be added
Parameters: child Child container to be added
<description>/<version>
.appBase
directory, and deploys new ones as they are
encountered.Throws: Exception if an MBean cannot be created or registered
Returns: true if namespace awarenes is enabled.
Returns: true if validation is enabled.
null
.
Parameters: uri Request URI to be mapped
Parameters: alias Alias name to be removed
Parameters: appBase The new application root
Parameters: autoDeploy The new auto deploy flag
Parameters: configClass The new context configuration class
Parameters: contextClass The new context implementation class
Parameters: deployOnStartup The new deploy on startup flag
Parameters: errorReportValveClass The new error report valve class
Parameters: liveDeploy The new live deploy flag
Parameters: name Virtual host name
Throws: IllegalArgumentException if name is null
Parameters: xmlNamespaceAware true to enable namespace awareness
Parameters: xmlValidation true to enable xml instance validation
Throws: LifecycleException if this component detects a fatal error that prevents it from being started