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 Object
implements AbstractEndpoint.Handler<S>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tomcat.util.net.AbstractEndpoint.Handler
AbstractEndpoint.Handler.SocketState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObtain the GlobalRequestProcessor associated with the handler.protected LoggetLog()Obtain the currently open sockets.protected AbstractProtocol<S>protected voidlongPoll(SocketWrapperBase<?> socket, Processor processor) final voidpause()Inform the handler that the endpoint has stopped accepting any new connections.process(SocketWrapperBase<S> wrapper, SocketEvent status) Process the provided socket with the given current status.voidrecycle()Recycle resources associated with the handler.protected voidvoidrelease(SocketWrapperBase<S> socketWrapper) Expected to be used by the Endpoint to release resources on socket close, errors etc.protected voidunregister(Processor processor)
-
Constructor Details
-
ConnectionHandler
-
-
Method Details
-
getProtocol
-
getLog
-
getGlobal
Description copied from interface:AbstractEndpoint.HandlerObtain the GlobalRequestProcessor associated with the handler.- Specified by:
getGlobalin interfaceAbstractEndpoint.Handler<S>- Returns:
- the GlobalRequestProcessor
-
recycle
public void recycle()Description copied from interface:AbstractEndpoint.HandlerRecycle resources associated with the handler.- Specified by:
recyclein interfaceAbstractEndpoint.Handler<S>
-
process
public 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 interfaceAbstractEndpoint.Handler<S>- Parameters:
wrapper- The socket to processstatus- The current socket status- Returns:
- The state of the socket after processing
-
longPoll
-
getOpenSockets
Description copied from interface:AbstractEndpoint.HandlerObtain the currently open sockets.- Specified by:
getOpenSocketsin interfaceAbstractEndpoint.Handler<S>- Returns:
- The sockets for which the handler is tracking a currently open connection
-
release
Expected to be used by the Endpoint to release resources on socket close, errors etc.- Specified by:
releasein interfaceAbstractEndpoint.Handler<S>- Parameters:
socketWrapper- The socketWrapper to release resources for
-
register
-
unregister
-
pause
public 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 interfaceAbstractEndpoint.Handler<S>
-