org.apache.catalina
インタフェース Host

すべてのスーパーインタフェース:
Container
既知の実装クラスの一覧:
StandardHost

public interface Host
extends Container

A Host is a Container that represents a virtual host in the Catalina servlet engine. It is useful in the following types of scenarios:

In general, you would not use a Host when deploying Catalina connected to a web server (such as Apache), because the Connector will have utilized the web server's facilities to determine which Context (or perhaps even which Wrapper) should be utilized to process this request.

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).

バージョン:
$Revision: 1.5.2.1 $ $Date: 2002/02/27 03:24:30 $
作成者:
Craig R. McClanahan

フィールドの概要
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().
 
インタフェース org.apache.catalina.Container から継承したフィールド
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT
 
メソッドの概要
 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.
 
インタフェース 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
 

フィールドの詳細

ADD_ALIAS_EVENT

public static final java.lang.String ADD_ALIAS_EVENT
The ContainerEvent event type sent when a new alias is added by addAlias().

REMOVE_ALIAS_EVENT

public static final java.lang.String REMOVE_ALIAS_EVENT
The ContainerEvent event type sent when an old alias is removed by removeAlias().
メソッドの詳細

getAppBase

public java.lang.String getAppBase()
Return the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.

setAppBase

public void setAppBase(java.lang.String appBase)
Set the application root for this Host. This can be an absolute pathname, a relative pathname, or a URL.
パラメータ:
appBase - The new application root

addDefaultContext

public void addDefaultContext(DefaultContext defaultContext)
Set the DefaultContext for new web applications.
パラメータ:
defaultContext - The new DefaultContext

getName

public java.lang.String getName()
Return the canonical, fully qualified, name of the virtual host this Container represents.
定義:
インタフェース Container 内の getName

setName

public void setName(java.lang.String name)
Set the canonical, fully qualified, name of the virtual host this Container represents.
定義:
インタフェース Container 内の setName
パラメータ:
name - Virtual host name
例外:
java.lang.IllegalArgumentException - if name is null

importDefaultContext

public void importDefaultContext(Context context)
Import the DefaultContext config into a web application context.
パラメータ:
context - web application context to import default context

addAlias

public void addAlias(java.lang.String alias)
Add an alias name that should be mapped to this same Host.
パラメータ:
alias - The alias to be added

findAliases

public java.lang.String[] findAliases()
Return the set of alias names for this Host. If none are defined, a zero length array is returned.

map

public 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.
パラメータ:
uri - Request URI to be mapped

removeAlias

public void removeAlias(java.lang.String alias)
Remove the specified alias name from the aliases for this Host.
パラメータ:
alias - Alias name to be removed


Copyright ? 2000-2001 Apache Software Foundation. All Rights Reserved.