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).
Modifier and Type | Field and Description |
---|---|
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() . |
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
String[] |
getNetworkListenerNames()
Gets the network listener names with which this Host is associated.
|
boolean |
getXmlNamespaceAware()
Get the server.xml
|
boolean |
getXmlValidation()
Get the server.xml
|
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 |
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 |
setNetworkListenerNames(String[] networkListenerNames)
Associates this Host with the given network listener names.
|
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.
|
addChild, addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getBackgroundProcessorDelay, getInfo, getLoader, getLogger, getManager, getMappingObject, getParent, getParentClassLoader, getPipeline, getRealm, getResources, hasCustomPipeline, invoke, isCheckIfRequestIsSecure, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCheckIfRequestIsSecure, setLoader, setLogger, setManager, setParent, setParentClassLoader, setRealm, setResources
static final String ADD_ALIAS_EVENT
addAlias()
.static final String REMOVE_ALIAS_EVENT
removeAlias()
.String getAppBase()
void setAppBase(String appBase)
appBase
- The new application rootboolean getAutoDeploy()
void setAutoDeploy(boolean autoDeploy)
autoDeploy
- The new auto deploy flagboolean getDeployOnStartup()
void setDeployOnStartup(boolean deployOnStartup)
deployOnStartup
- The new deploy on startup flagString getName()
void setName(String name)
setName
in interface Container
name
- Virtual host nameIllegalArgumentException
- if name is nullboolean getXmlNamespaceAware()
boolean getXmlValidation()
void setXmlValidation(boolean xmlValidation)
xmlValidation
- true to enable xml instance validationvoid setXmlNamespaceAware(boolean xmlNamespaceAware)
xmlNamespaceAware
- true to enable namespace awarenessvoid setNetworkListenerNames(String[] networkListenerNames)
networkListenerNames
- The network listener names with which to associate this HostString[] getNetworkListenerNames()
void addAlias(String alias)
alias
- The alias to be addedString[] findAliases()
Context map(String uri)
null
.uri
- Request URI to be mappedvoid removeAlias(String alias)
alias
- Alias name to be removedCopyright © 2020. All rights reserved.