java.lang.Object
PoolTcpConnector
org.apache.ajp.tomcat33.Ajp14Interceptor
- All Implemented Interfaces:
- org.apache.tomcat.util.net.TcpConnectionHandler
- public class Ajp14Interceptor
- extends PoolTcpConnector
- implements org.apache.tomcat.util.net.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.
Method Summary |
protected boolean |
doShutdown(java.net.InetAddress serverAddr,
java.net.InetAddress clientAddr)
|
void |
engineInit(org.apache.tomcat.core.ContextManager cm)
|
void |
engineStart(org.apache.tomcat.core.ContextManager cm)
|
java.lang.Object |
getInfo(org.apache.tomcat.core.Context ctx,
org.apache.tomcat.core.Request request,
int id,
java.lang.String key)
|
java.lang.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. |
private Ajp14Request |
initRequest(java.lang.Object[] thData)
Construct the request object, with probably unnecesary
sanity tests ( should work without thread pool - but that is
not supported in PoolTcpConnector, maybe in future ) |
protected void |
localInit()
Called by PoolTcpConnector to allow childs to init. |
void |
processConnection(org.apache.tomcat.util.net.TcpConnection connection,
java.lang.Object[] thData)
Called whenever a new TCP connection is received. |
int |
setInfo(org.apache.tomcat.core.Context ctx,
org.apache.tomcat.core.Request request,
int id,
java.lang.String key,
java.lang.Object obj)
|
void |
setPassword(java.lang.String s)
|
void |
setSeed(java.lang.String pseed)
Set the original entropy seed |
void |
setServer(java.lang.Object contextM)
Add informations about the a "controler" object
specific to the server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ajp14_note
int ajp14_note
password
java.lang.String password
reqHandler
org.apache.ajp.RequestHandler reqHandler
negHandler
org.apache.ajp.NegociationHandler negHandler
Ajp14Interceptor
public Ajp14Interceptor()
engineInit
public void engineInit(org.apache.tomcat.core.ContextManager cm)
throws TomcatException
engineStart
public void engineStart(org.apache.tomcat.core.ContextManager cm)
throws TomcatException
setPassword
public void setPassword(java.lang.String s)
setSeed
public void setSeed(java.lang.String pseed)
- Set the original entropy seed
localInit
protected void localInit()
throws java.lang.Exception
- Called by PoolTcpConnector to allow childs to init.
init
public java.lang.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 org.apache.tomcat.util.net.TcpConnectionHandler
initRequest
private Ajp14Request initRequest(java.lang.Object[] thData)
- Construct the request object, with probably unnecesary
sanity tests ( should work without thread pool - but that is
not supported in PoolTcpConnector, maybe in future )
processConnection
public void processConnection(org.apache.tomcat.util.net.TcpConnection connection,
java.lang.Object[] thData)
- Called whenever a new TCP connection is received. The connection
is reused.
- Specified by:
processConnection
in interface org.apache.tomcat.util.net.TcpConnectionHandler
doShutdown
protected boolean doShutdown(java.net.InetAddress serverAddr,
java.net.InetAddress clientAddr)
setServer
public void setServer(java.lang.Object contextM)
- Description copied from interface:
org.apache.tomcat.util.net.TcpConnectionHandler
- Add informations about the a "controler" object
specific to the server. In tomcat it will be a
ContextManager.
- Specified by:
setServer
in interface org.apache.tomcat.util.net.TcpConnectionHandler
getInfo
public java.lang.Object getInfo(org.apache.tomcat.core.Context ctx,
org.apache.tomcat.core.Request request,
int id,
java.lang.String key)
setInfo
public int setInfo(org.apache.tomcat.core.Context ctx,
org.apache.tomcat.core.Request request,
int id,
java.lang.String key,
java.lang.Object obj)