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 java.lang.String |
ADD_ALIAS_EVENT
The ContainerEvent event type sent when a new alias is added
by
addAlias() . |
static java.lang.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(java.lang.String alias)
Add an alias name that should be mapped to this same Host.
|
java.lang.String[] |
findAliases()
Return the set of alias names for this Host.
|
java.lang.String |
getAppBase()
Return the application root for this Host.
|
java.lang.String |
getConfigClass()
Return the Java class name of the context configuration class
for new web applications.
|
java.lang.String |
getDefaultWebapp()
Return the default webapp name.
|
java.lang.String |
getName()
Return the canonical, fully qualified, name of the virtual host
this Container represents.
|
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 |
setConfigClass(java.lang.String configClass)
Set the Java class name of the context configuration class
for new web applications.
|
void |
setDefaultWebapp(java.lang.String defaultWebapp)
Set the default webapp name for this Host.
|
void |
setName(java.lang.String name)
Set the canonical, fully qualified, name of the virtual host
this Container represents.
|
addChild, addContainerListener, addPropertyChangeListener, backgroundProcess, findChild, findChildren, findContainerListeners, fireContainerEvent, getBackgroundProcessorDelay, getCluster, getInfo, getLoader, getLogger, getManager, getMappingObject, getObjectName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, invoke, isStarted, removeChild, removeContainerListener, removePropertyChangeListener, setBackgroundProcessorDelay, setCluster, setLoader, setManager, setParent, setParentClassLoader, setRealm, setResources
static final java.lang.String ADD_ALIAS_EVENT
addAlias()
.static final java.lang.String REMOVE_ALIAS_EVENT
removeAlias()
.java.lang.String getAppBase()
void setAppBase(java.lang.String appBase)
appBase
- The new application rootjava.lang.String getConfigClass()
void setConfigClass(java.lang.String configClass)
configClass
- The new context configuration classjava.lang.String getDefaultWebapp()
void setDefaultWebapp(java.lang.String defaultWebapp)
defaultWebapp
- The archive name of the webapp which will be mapped
as the root of the hostjava.lang.String getName()
void setName(java.lang.String name)
void addAlias(java.lang.String alias)
alias
- The alias to be addedjava.lang.String[] findAliases()
void removeAlias(java.lang.String alias)
alias
- Alias name to be removed