Apache Tomcat 7.0.16

org.apache.coyote.ajp
Class AjpNioProtocol.AjpConnectionHandler

java.lang.Object
  extended by org.apache.coyote.AbstractProtocol.AbstractConnectionHandler
      extended by org.apache.coyote.ajp.AjpNioProtocol.AjpConnectionHandler
All Implemented Interfaces:
AbstractEndpoint.Handler, NioEndpoint.Handler
Enclosing class:
AjpNioProtocol

protected static class AjpNioProtocol.AjpConnectionHandler
extends AbstractProtocol.AbstractConnectionHandler
implements NioEndpoint.Handler


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.tomcat.util.net.AbstractEndpoint.Handler
AbstractEndpoint.Handler.SocketState
 
Field Summary
protected  ConcurrentHashMap<NioChannel,AjpNioProcessor> connections
           
protected  AjpNioProtocol proto
           
protected  AbstractProtocol.RecycledProcessors<AjpNioProcessor> recycledProcessors
           
 
Fields inherited from class org.apache.coyote.AbstractProtocol.AbstractConnectionHandler
global, registerCount
 
Constructor Summary
AjpNioProtocol.AjpConnectionHandler(AjpNioProtocol proto)
           
 
Method Summary
protected  AjpNioProcessor createProcessor()
           
 AbstractEndpoint.Handler.SocketState event(NioChannel socket, SocketStatus status)
           
protected  Log getLog()
           
protected  AbstractProtocol getProtocol()
           
 SSLImplementation getSslImplementation()
           
 AbstractEndpoint.Handler.SocketState process(NioChannel socket)
           
 void recycle()
          Recycle resources associated with the handler.
 void release(NioChannel socket)
          Use this only if the processor is not available, otherwise use release(NioChannel, AjpNioProcessor).
 void release(NioChannel socket, AjpNioProcessor processor)
           
 void release(SocketChannel socket)
           
 
Methods inherited from class org.apache.coyote.AbstractProtocol.AbstractConnectionHandler
getGlobal, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tomcat.util.net.AbstractEndpoint.Handler
getGlobal
 

Field Detail

proto

protected AjpNioProtocol proto

connections

protected ConcurrentHashMap<NioChannel,AjpNioProcessor> connections

recycledProcessors

protected AbstractProtocol.RecycledProcessors<AjpNioProcessor> recycledProcessors
Constructor Detail

AjpNioProtocol.AjpConnectionHandler

public AjpNioProtocol.AjpConnectionHandler(AjpNioProtocol proto)
Method Detail

getProtocol

protected AbstractProtocol getProtocol()
Specified by:
getProtocol in class AbstractProtocol.AbstractConnectionHandler

getLog

protected Log getLog()
Specified by:
getLog in class AbstractProtocol.AbstractConnectionHandler

recycle

public void recycle()
Description copied from interface: AbstractEndpoint.Handler
Recycle resources associated with the handler.

Specified by:
recycle in interface AbstractEndpoint.Handler

getSslImplementation

public SSLImplementation getSslImplementation()
Specified by:
getSslImplementation in interface NioEndpoint.Handler

release

public void release(SocketChannel socket)
Specified by:
release in interface NioEndpoint.Handler

release

public void release(NioChannel socket)
Use this only if the processor is not available, otherwise use release(NioChannel, AjpNioProcessor).

Specified by:
release in interface NioEndpoint.Handler

release

public void release(NioChannel socket,
                    AjpNioProcessor processor)

event

public AbstractEndpoint.Handler.SocketState event(NioChannel socket,
                                                  SocketStatus status)
Specified by:
event in interface NioEndpoint.Handler

process

public AbstractEndpoint.Handler.SocketState process(NioChannel socket)
Specified by:
process in interface NioEndpoint.Handler

createProcessor

protected AjpNioProcessor createProcessor()

Apache Tomcat 7.0.16

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.