org.apache.catalina.connector.warp
Class WarpEngine

java.lang.Object
  |
  +--org.apache.catalina.core.ContainerBase
        |
        +--org.apache.catalina.core.StandardEngine
              |
              +--org.apache.catalina.connector.warp.WarpEngine
All Implemented Interfaces:
Container, Engine, Lifecycle

public class WarpEngine
extends StandardEngine

Version:
CVS $Id: WarpEngine.java,v 1.10 2001/01/24 23:10:46 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.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.Lifecycle
START_EVENT, STOP_EVENT
 
Constructor Summary
WarpEngine()
          Create a new WarpEngine component with the default basic Valve.
 
Method Summary
 void addChild(Container child)
          Add a child WarpHost to the current WarpEngine.
protected  void addDefaultMapper(java.lang.String mapper)
          Add a default Mapper implementation if none have been configured explicitly.
 WarpHost findChild(int id)
          Find a child WarpHost associated with the specified Host ID.
 java.lang.String getAppBase()
          Return the application root for this Connector.
 java.lang.String getInfo()
          Return descriptive information about this implementation.
 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.
 void setAppBase(java.lang.String appbase)
          Set the application root for this Connector.
 WarpHost setupChild(java.lang.String name)
          Create a new WarpHost with the specified host name, setup the appropriate values and add it to the list of children.
 
Methods inherited from class org.apache.catalina.core.StandardEngine
addDefaultContext, getDefaultHost, getMapperClass, importDefaultContext, setDefaultHost, setMapperClass, setParent, start, 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, getName, getParent, getParentClassLoader, getPipeline, getRealm, getResources, getValves, log, log, logName, removeChild, removeContainerListener, removeLifecycleListener, removeMapper, removePropertyChangeListener, removeValve, setCluster, setDebug, setLoader, setLogger, setManager, setName, setParentClassLoader, setRealm, setResources, 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, getName, getParent, getParentClassLoader, getRealm, getResources, removeChild, removeContainerListener, removeMapper, removePropertyChangeListener, setCluster, setLoader, setLogger, setManager, setName, setParentClassLoader, setRealm, setResources
 

Constructor Detail

WarpEngine

public WarpEngine()
Create a new WarpEngine component with the default basic Valve.
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?

addDefaultMapper

protected void addDefaultMapper(java.lang.String mapper)
Add a default Mapper implementation if none have been configured explicitly.
Overrides:
addDefaultMapper in class StandardEngine
Parameters:
mapperClass - Java class name of the default Mapper

getInfo

public java.lang.String getInfo()
Return descriptive information about this implementation.
Overrides:
getInfo in class StandardEngine

setupChild

public WarpHost setupChild(java.lang.String name)
Create a new WarpHost with the specified host name, setup the appropriate values and add it to the list of children.

addChild

public void addChild(Container child)
Add a child WarpHost to the current WarpEngine.
Overrides:
addChild in class StandardEngine
Following copied from class: org.apache.catalina.core.StandardEngine
Parameters:
child - Child container to be added

findChild

public WarpHost findChild(int id)
Find a child WarpHost associated with the specified Host ID.

getAppBase

public java.lang.String getAppBase()
Return the application root for this Connector. 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 Connector. This can be an absolute pathname, a relative pathname, or a URL.


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.