Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.coyote.http11
Class Http11BaseProtocol.Http11ConnectionHandler  view Http11BaseProtocol.Http11ConnectionHandler download Http11BaseProtocol.Http11ConnectionHandler.java

java.lang.Object
  extended byorg.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


Field Summary
(package private) static int count
           
(package private)  org.apache.coyote.RequestGroupInfo global
           
(package private)  Http11BaseProtocol proto
           
 
Constructor Summary
(package private) Http11BaseProtocol.Http11ConnectionHandler(Http11BaseProtocol proto)
           
 
Method Summary
 java.lang.Object[] init()
          Called before the call to processConnection.
 void processConnection(org.apache.tomcat.util.net.TcpConnection connection, java.lang.Object[] thData)
          Assert: connection!=null Assert: connection.getSocket() != null Assert: thData != null and is the result of calling init() Assert: thData is preserved per Thread.
 void setAttribute(java.lang.String name, java.lang.Object value)
          Used to pass config informations to the handler.
 void setServer(java.lang.Object o)
          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
 

Field Detail

proto

Http11BaseProtocol proto

count

static int count

global

org.apache.coyote.RequestGroupInfo global
Constructor Detail

Http11BaseProtocol.Http11ConnectionHandler

Http11BaseProtocol.Http11ConnectionHandler(Http11BaseProtocol proto)
Method Detail

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