java.lang.Object
org.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler
org.apache.coyote.http11.Http11Protocol.JmxHttp11ConnectionHandler
- All Implemented Interfaces:
- org.apache.tomcat.util.net.TcpConnectionHandler
- Enclosing class:
- Http11Protocol
- static class Http11Protocol.JmxHttp11ConnectionHandler
- extends Http11BaseProtocol.Http11ConnectionHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
proto
Http11Protocol proto
count
static int count
global
org.apache.coyote.RequestGroupInfo global
Http11Protocol.JmxHttp11ConnectionHandler
Http11Protocol.JmxHttp11ConnectionHandler(Http11Protocol 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- Overrides:
setAttribute in class Http11BaseProtocol.Http11ConnectionHandler
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- Overrides:
setServer in class Http11BaseProtocol.Http11ConnectionHandler
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- Overrides:
init in class Http11BaseProtocol.Http11ConnectionHandler
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