org.apache.catalina
public interface Host extends Container
The parent Container attached to a Host is generally an Engine, but may be some other implementation, or may be omitted if it is not necessary.
The child containers attached to a Host are generally implementations of Context (representing an individual servlet context).
Version: $Revision: 784615 $ $Date: 2009-06-14 22:39:30 +0200 (Sun, 14 Jun 2009) $
Field Summary | |
---|---|
static String | ADD_ALIAS_EVENT
The ContainerEvent event type sent when a new alias is added
by addAlias() . |
static String | REMOVE_ALIAS_EVENT
The ContainerEvent event type sent when an old alias is removed
by removeAlias() . |
Method Summary | |
---|---|
void | addAlias(String alias)
Add an alias name that should be mapped to this same Host.
|
String[] | findAliases()
Return the set of alias names for this Host. |
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. |
boolean | getDeployOnStartup()
Return the value of the deploy on startup flag. |
String | getName()
Return the canonical, fully qualified, name of the virtual host
this Container represents. |
boolean | getXmlNamespaceAware()
Get the server.xml <host> attribute's xmlNamespaceAware. |
boolean | getXmlValidation()
Get the server.xml <host> attribute's xmlValidation. |
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 | setDeployOnStartup(boolean deployOnStartup)
Set the deploy on startup flag value for this host.
|
void | setName(String name)
Set the canonical, fully qualified, name of the virtual host
this Container represents.
|
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. |
addAlias()
.removeAlias()
.Parameters: alias The alias to be added
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: deployOnStartup The new deploy on startup 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