protected static class Http11Protocol.Http11ConnectionHandler extends AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor> implements JIoEndpoint.Handler
AbstractEndpoint.Handler.SocketState
Modifier and Type | Field and Description |
---|---|
protected Http11Protocol |
proto |
connections, global, recycledProcessors, registerCount
Modifier and Type | Method and Description |
---|---|
void |
beforeHandshake(SocketWrapper<java.net.Socket> socket) |
protected Http11Processor |
createProcessor() |
protected Processor<java.net.Socket> |
createUpgradeProcessor(SocketWrapper<java.net.Socket> socket,
java.nio.ByteBuffer leftoverInput,
UpgradeToken upgradeToken) |
protected Log |
getLog() |
protected AbstractProtocol<java.net.Socket> |
getProtocol() |
SSLImplementation |
getSslImplementation() |
protected void |
initSsl(SocketWrapper<java.net.Socket> socket,
Processor<java.net.Socket> processor) |
protected void |
longPoll(SocketWrapper<java.net.Socket> socket,
Processor<java.net.Socket> processor) |
void |
release(SocketWrapper<java.net.Socket> socket,
Processor<java.net.Socket> processor,
boolean isSocketClosing,
boolean addToPoller)
Expected to be used by the handler once the processor is no longer
required.
|
getGlobal, process, recycle, register, unregister
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
getGlobal, recycle
protected Http11Protocol proto
protected AbstractProtocol<java.net.Socket> getProtocol()
getProtocol
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
protected Log getLog()
getLog
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
public SSLImplementation getSslImplementation()
getSslImplementation
in interface JIoEndpoint.Handler
public void release(SocketWrapper<java.net.Socket> socket, Processor<java.net.Socket> processor, boolean isSocketClosing, boolean addToPoller)
release
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
socket
- Not used in BIOprocessor
- isSocketClosing
- Not used in HTTPaddToPoller
- Not used in BIOprotected void initSsl(SocketWrapper<java.net.Socket> socket, Processor<java.net.Socket> processor)
initSsl
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
protected void longPoll(SocketWrapper<java.net.Socket> socket, Processor<java.net.Socket> processor)
longPoll
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
protected Http11Processor createProcessor()
createProcessor
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
protected Processor<java.net.Socket> createUpgradeProcessor(SocketWrapper<java.net.Socket> socket, java.nio.ByteBuffer leftoverInput, UpgradeToken upgradeToken) throws java.io.IOException
createUpgradeProcessor
in class AbstractProtocol.AbstractConnectionHandler<java.net.Socket,Http11Processor>
java.io.IOException
public void beforeHandshake(SocketWrapper<java.net.Socket> socket)
beforeHandshake
in interface JIoEndpoint.Handler
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.