Package org.apache.coyote
Class AbstractProtocol.ConnectionHandler<S>
- java.lang.Object
- 
- org.apache.coyote.AbstractProtocol.ConnectionHandler<S>
 
- 
- All Implemented Interfaces:
- AbstractEndpoint.Handler<S>
 - Enclosing class:
- AbstractProtocol<S>
 
 protected static class AbstractProtocol.ConnectionHandler<S> extends java.lang.Object implements AbstractEndpoint.Handler<S> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tomcat.util.net.AbstractEndpoint.HandlerAbstractEndpoint.Handler.SocketState
 
- 
 - 
Constructor SummaryConstructors Constructor Description ConnectionHandler(AbstractProtocol<S> proto)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetGlobal()Obtain the GlobalRequestProcessor associated with the handler.protected LoggetLog()java.util.Set<S>getOpenSockets()Obtain the currently open sockets.protected AbstractProtocol<S>getProtocol()protected voidlongPoll(SocketWrapperBase<?> socket, Processor processor)voidpause()Inform the handler that the endpoint has stopped accepting any new connections.AbstractEndpoint.Handler.SocketStateprocess(SocketWrapperBase<S> wrapper, SocketEvent status)Process the provided socket with the given current status.voidrecycle()Recycle resources associated with the handler.protected voidregister(Processor processor)voidrelease(SocketWrapperBase<S> socketWrapper)Expected to be used by the Endpoint to release resources on socket close, errors etc.protected voidunregister(Processor processor)
 
- 
- 
- 
Constructor Detail- 
ConnectionHandlerpublic ConnectionHandler(AbstractProtocol<S> proto) 
 
- 
 - 
Method Detail- 
getProtocolprotected AbstractProtocol<S> getProtocol() 
 - 
getLogprotected Log getLog() 
 - 
getGlobalpublic java.lang.Object getGlobal() Description copied from interface:AbstractEndpoint.HandlerObtain the GlobalRequestProcessor associated with the handler.- Specified by:
- getGlobalin interface- AbstractEndpoint.Handler<S>
- Returns:
- the GlobalRequestProcessor
 
 - 
recyclepublic void recycle() Description copied from interface:AbstractEndpoint.HandlerRecycle resources associated with the handler.- Specified by:
- recyclein interface- AbstractEndpoint.Handler<S>
 
 - 
processpublic AbstractEndpoint.Handler.SocketState process(SocketWrapperBase<S> wrapper, SocketEvent status) Description copied from interface:AbstractEndpoint.HandlerProcess the provided socket with the given current status.- Specified by:
- processin interface- AbstractEndpoint.Handler<S>
- Parameters:
- wrapper- The socket to process
- status- The current socket status
- Returns:
- The state of the socket after processing
 
 - 
longPollprotected void longPoll(SocketWrapperBase<?> socket, Processor processor) 
 - 
getOpenSocketspublic java.util.Set<S> getOpenSockets() Description copied from interface:AbstractEndpoint.HandlerObtain the currently open sockets.- Specified by:
- getOpenSocketsin interface- AbstractEndpoint.Handler<S>
- Returns:
- The sockets for which the handler is tracking a currently open connection
 
 - 
releasepublic void release(SocketWrapperBase<S> socketWrapper) Expected to be used by the Endpoint to release resources on socket close, errors etc.- Specified by:
- releasein interface- AbstractEndpoint.Handler<S>
- Parameters:
- socketWrapper- The socketWrapper to release resources for
 
 - 
registerprotected void register(Processor processor) 
 - 
unregisterprotected void unregister(Processor processor) 
 - 
pausepublic final void pause() Description copied from interface:AbstractEndpoint.HandlerInform the handler that the endpoint has stopped accepting any new connections. Typically, the endpoint will be stopped shortly afterwards but it is possible that the endpoint will be resumed so the handler should not assume that a stop will follow.- Specified by:
- pausein interface- AbstractEndpoint.Handler<S>
 
 
- 
 
-