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

Quick Search    Search Deep

org.apache.coyote.http11
Class Http11Protocol.JmxHttp11ConnectionHandler  view Http11Protocol.JmxHttp11ConnectionHandler download Http11Protocol.JmxHttp11ConnectionHandler.java

java.lang.Object
  extended byorg.apache.coyote.http11.Http11BaseProtocol.Http11ConnectionHandler
      extended byorg.apache.coyote.http11.Http11Protocol.JmxHttp11ConnectionHandler
All Implemented Interfaces:
org.apache.tomcat.util.net.TcpConnectionHandler
Enclosing class:
Http11Protocol

static class Http11Protocol.JmxHttp11ConnectionHandler
extends Http11BaseProtocol.Http11ConnectionHandler


Field Summary
(package private) static int count
           
(package private)  org.apache.coyote.RequestGroupInfo global
           
(package private)  Http11Protocol proto
           
 
Constructor Summary
(package private) Http11Protocol.JmxHttp11ConnectionHandler(Http11Protocol 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

Http11Protocol proto

count

static int count

global

org.apache.coyote.RequestGroupInfo global
Constructor Detail

Http11Protocol.JmxHttp11ConnectionHandler

Http11Protocol.JmxHttp11ConnectionHandler(Http11Protocol 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
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