org.apache.ajp.tomcat33

Class Ajp14Interceptor

Implemented Interfaces:
TcpConnectionHandler

public class Ajp14Interceptor
extends PoolTcpConnector
implements TcpConnectionHandler

Tomcat 33 module implementing the Ajp14 protocol. The actual protocol implementation is in Ajp14.java, this is just an adapter to plug it into tomcat.

Constructor Summary

Ajp14Interceptor()

Method Summary

protected boolean
doShutdown(InetAddress serverAddr, InetAddress clientAddr)
void
engineInit(ContextManager cm)
void
engineStart(ContextManager cm)
Object
getInfo(Context ctx, Request request, int id, String key)
Object[]
init()
Called by the thread pool when a new thread is added to the pool, in order to create the (expensive) objects that will be stored as thread data.
protected void
localInit()
Called by PoolTcpConnector to allow childs to init.
void
processConnection(TcpConnection connection, thData[] )
Called whenever a new TCP connection is received.
int
setInfo(Context ctx, Request request, int id, String key, Object obj)
void
setPassword(String s)
void
setSeed(String pseed)
Set the original entropy seed
void
setServer(Object contextM)
Deprecated. This has nothing to do with TcpHandling, was used as a workaround

Constructor Details

Ajp14Interceptor

public Ajp14Interceptor()

Method Details

doShutdown

protected boolean doShutdown(InetAddress serverAddr,
                             InetAddress clientAddr)


engineInit

public void engineInit(ContextManager cm)
            throws TomcatException


engineStart

public void engineStart(ContextManager cm)
            throws TomcatException


getInfo

public Object getInfo(Context ctx,
                      Request request,
                      int id,
                      String key)


init

public Object[] init()
Called by the thread pool when a new thread is added to the pool, in order to create the (expensive) objects that will be stored as thread data. XXX we should use a single object, not array ( several reasons ), XXX Ajp14 should be storead as a request note, to be available in all modules
Specified by:
init in interface TcpConnectionHandler


localInit

protected void localInit()
            throws Exception
Called by PoolTcpConnector to allow childs to init.


processConnection

public void processConnection(TcpConnection connection,
                              thData[] )
Called whenever a new TCP connection is received. The connection is reused.
Specified by:
processConnection in interface TcpConnectionHandler


setInfo

public int setInfo(Context ctx,
                   Request request,
                   int id,
                   String key,
                   Object obj)


setPassword

public void setPassword(String s)


setSeed

public void setSeed(String pseed)
Set the original entropy seed


setServer

public void setServer(Object contextM)

Deprecated. This has nothing to do with TcpHandling, was used as a workaround

Add informations about the a "controler" object specific to the server. In tomcat it will be a ContextManager.
Specified by:
setServer in interface TcpConnectionHandler


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.