org.apache.catalina.connector.warp
Class WarpHost

java.lang.Object
  |
  +--org.apache.catalina.core.ContainerBase
        |
        +--org.apache.catalina.core.StandardHost
              |
              +--org.apache.catalina.connector.warp.WarpHost
All Implemented Interfaces:
Container, Deployer, Host, Lifecycle

public class WarpHost
extends StandardHost

Version:
CVS $Id: WarpHost.java,v 1.7 2001/01/24 23:10:48 pier Exp $
Author:
Pier Fumagalli, Copyright © 1999, 2000 The Apache Software Foundation.

Fields inherited from class org.apache.catalina.core.ContainerBase
children, cluster, debug, lifecycle, listeners, loader, logger, manager, mapper, mapperClass, mappers, name, parent, parentClassLoader, pipeline, realm, resources, sm, started, support
 
Fields inherited from interface org.apache.catalina.Deployer
INSTALL_EVENT, REMOVE_EVENT
 
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
 
Fields inherited from interface org.apache.catalina.Host
ADD_ALIAS_EVENT, REMOVE_ALIAS_EVENT
 
Fields inherited from interface org.apache.catalina.Lifecycle
START_EVENT, STOP_EVENT
 
Constructor Summary
WarpHost()
          Create a new instance of a WarpHost.
 
Method Summary
 void addChild(Container container)
          Add a new context to this host.
protected  int getHostID()
          Return the Host ID associated with this WarpHost instance.
 void invoke(Request req, Response res)
          Process the specified Request, and generate the corresponding Response, according to the design of this particular Container.
 Container map(Request request, boolean update)
          Return the child Container that should be used to process this Request, based upon its characteristics.
protected  void setHostID(int id)
          Set the Host ID associated with this WarpHost instance.
 
Methods inherited from class org.apache.catalina.core.StandardHost
addAlias, addDefaultContext, addDefaultMapper, expand, expand, findAliases, findDeployedApp, findDeployedApps, getAppBase, getConfigClass, getContextClass, getInfo, getMapperClass, getName, importDefaultContext, install, isUnpackWARs, map, remove, remove, removeAlias, setAppBase, setConfigClass, setContextClass, setMapperClass, setName, setUnpackWARs, start, stop, toString
 
Methods inherited from class org.apache.catalina.core.ContainerBase
addContainerListener, addLifecycleListener, addMapper, addPropertyChangeListener, addValve, findChild, findChildren, findMapper, findMappers, fireContainerEvent, getCluster, getDebug, getLoader, getLogger, getManager, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getValves, log, log, logName, removeChild, removeContainerListener, removeLifecycleListener, removeMapper, removePropertyChangeListener, removeValve, setCluster, setDebug, setLoader, setLogger, setManager, setParent, setParentClassLoader, setRealm, setResources, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.catalina.Container
addContainerListener, addMapper, addPropertyChangeListener, findChild, findChildren, findMapper, findMappers, getCluster, getLoader, getLogger, getManager, getParent, getParentClassLoader, getRealm, getResources, removeChild, removeContainerListener, removeMapper, removePropertyChangeListener, setCluster, setLoader, setLogger, setManager, setParent, setParentClassLoader, setRealm, setResources
 

Constructor Detail

WarpHost

public WarpHost()
Create a new instance of a WarpHost.
Method Detail

invoke

public void invoke(Request req,
                   Response res)
            throws javax.servlet.ServletException,
                   java.io.IOException
Description copied from interface: Container
Process the specified Request, and generate the corresponding Response, according to the design of this particular Container.
Overrides:
invoke in class ContainerBase
Following copied from interface: org.apache.catalina.Container
Parameters:
request - Request to be processed
response - Response to be produced
Throws:
java.io.IOException - if an input/output error occurred while processing
javax.servlet.ServletException - if a ServletException was thrown while processing this request

map

public Container map(Request request,
                     boolean update)
Description copied from interface: Container
Return the child Container that should be used to process this Request, based upon its characteristics. If no such child Container can be identified, return null instead.
Overrides:
map in class ContainerBase
Following copied from interface: org.apache.catalina.Container
Parameters:
request - Request being processed
update - Update the Request to reflect the mapping selection?

addChild

public void addChild(Container container)
Add a new context to this host.
Overrides:
addChild in class StandardHost
Following copied from class: org.apache.catalina.core.StandardHost
Parameters:
child - Child container to be added

getHostID

protected int getHostID()
Return the Host ID associated with this WarpHost instance.

setHostID

protected void setHostID(int id)
Set the Host ID associated with this WarpHost instance.


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.