org.apache.coyote.http11
Class Http11BaseProtocol.Http11ConnectionHandler

java.lang.Object
org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler
- All Implemented Interfaces:
- org.apache.tomcat.util.net.TcpConnectionHandler
- Direct Known Subclasses:
- Http11Protocol.JmxHttp11ConnectionHandler
- Enclosing class:
- Http11BaseProtocol
- static class Http11BaseProtocol.Http11ConnectionHandler
- extends java.lang.Object
- implements org.apache.tomcat.util.net.TcpConnectionHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proto
Http11BaseProtocol proto
count
static int count
global
org.apache.coyote.RequestGroupInfo global
Http11BaseProtocol.Http11ConnectionHandler
Http11BaseProtocol.Http11ConnectionHandler(Http11BaseProtocol proto)
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
- Description copied from interface:
org.apache.tomcat.util.net.TcpConnectionHandler
- Used to pass config informations to the handler.
- Specified by:
setAttribute in interface org.apache.tomcat.util.net.TcpConnectionHandler
setServer
public void setServer(java.lang.Object o)
- 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
init
public java.lang.Object[] init()
- Description copied from interface:
org.apache.tomcat.util.net.TcpConnectionHandler
- Called before the call to processConnection.
If the thread is reused, init() should be called once per thread.
It may look strange, but it's a _very_ good way to avoid synchronized
methods and keep per thread data.
Assert: the object returned from init() will be passed to
all processConnection() methods happening in the same thread.
- Specified by:
init in interface org.apache.tomcat.util.net.TcpConnectionHandler
processConnection
public void processConnection(org.apache.tomcat.util.net.TcpConnection connection,
java.lang.Object[] thData)
- Description copied from interface:
org.apache.tomcat.util.net.TcpConnectionHandler
- Assert: connection!=null
Assert: connection.getSocket() != null
Assert: thData != null and is the result of calling init()
Assert: thData is preserved per Thread.
- Specified by:
processConnection in interface org.apache.tomcat.util.net.TcpConnectionHandler