Class ServerH2PrefaceHandler
java.lang.Object
org.apache.hc.core5.http2.impl.nio.PrefaceHandlerBase
org.apache.hc.core5.http2.impl.nio.ServerH2PrefaceHandler
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpConnection,HttpConnectionEventHandler,SocketModalCloseable,ModalCloseable,IOEventHandler
I/O event handler for events fired by
ProtocolIOSession that implements
server side of the HTTP/2 protocol negotiation handshake.- Since:
- 5.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerH2StreamMultiplexerFactoryprivate final BufferedData(package private) static final byte[]Fields inherited from class org.apache.hc.core5.http2.impl.nio.PrefaceHandlerBase
ioSession -
Constructor Summary
ConstructorsConstructorDescriptionServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory) ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, FutureCallback<ProtocolIOSession> resultCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidTriggered after the given session has been just created.voidinputReady(IOSession session, ByteBuffer src) Triggered when the given session has input pending.voidoutputReady(IOSession session) Triggered when the given session is ready for output.toString()Methods inherited from class org.apache.hc.core5.http2.impl.nio.PrefaceHandlerBase
close, close, disconnected, exception, getEndpointDetails, getLocalAddress, getProtocolVersion, getRemoteAddress, getSocketTimeout, getSSLSession, isOpen, setSocketTimeout, startProtocol, timeout
-
Field Details
-
PREFACE
static final byte[] PREFACE -
http2StreamHandlerFactory
-
inBuf
-
-
Constructor Details
-
ServerH2PrefaceHandler
public ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory) -
ServerH2PrefaceHandler
public ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, FutureCallback<ProtocolIOSession> resultCallback)
-
-
Method Details
-
connected
Description copied from interface:IOEventHandlerTriggered after the given session has been just created.- Parameters:
session- the I/O session.- Throws:
IOException
-
inputReady
Description copied from interface:IOEventHandlerTriggered when the given session has input pending.- Parameters:
session- the I/O session.- Throws:
IOException
-
outputReady
Description copied from interface:IOEventHandlerTriggered when the given session is ready for output.- Parameters:
session- the I/O session.- Throws:
IOException
-
toString
-