|
Host (Catalina Internal API Documentation)
org.apache.catalina
|
Field Summary | |
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() . |
Fields inherited from interface org.apache.catalina.Container |
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT |
Method Summary | |
void |
addAlias(java.lang.String alias)
Add an alias name that should be mapped to this same Host. |
void |
addDefaultContext(DefaultContext defaultContext)
Set the DefaultContext for new web applications. |
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 |
getName()
Return the canonical, fully qualified, name of the virtual host this Container represents. |
void |
importDefaultContext(Context context)
Import the DefaultContext config into a web application context. |
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 . |
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 |
setName(java.lang.String name)
Set the canonical, fully qualified, name of the virtual host this Container represents. |
Methods inherited from interface org.apache.catalina.Container |
addChild, addContainerListener, addMapper, addPropertyChangeListener, findChild, findChildren, findMapper, findMappers, getCluster, getInfo, getLoader, getLogger, getManager, getParent, getParentClassLoader, getRealm, getResources, invoke, map, removeChild, removeContainerListener, removeMapper, removePropertyChangeListener, setCluster, setLoader, setLogger, setManager, setParent, setParentClassLoader, setRealm, setResources |
Field Detail |
public static final java.lang.String ADD_ALIAS_EVENT
addAlias()
.
public static final java.lang.String REMOVE_ALIAS_EVENT
removeAlias()
.
Method Detail |
public java.lang.String getAppBase()
public void setAppBase(java.lang.String appBase)
appBase
- The new application rootpublic void addDefaultContext(DefaultContext defaultContext)
defaultContext
- The new DefaultContextpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- Virtual host name
java.lang.IllegalArgumentException
- if name is nullpublic void importDefaultContext(Context context)
context
- web application context to import default contextpublic void addAlias(java.lang.String alias)
alias
- The alias to be addedpublic java.lang.String[] findAliases()
public Context map(java.lang.String uri)
null
.
uri
- Request URI to be mappedpublic void removeAlias(java.lang.String alias)
alias
- Alias name to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |