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 ServerH2StreamMultiplexerFactory
private 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 TypeMethodDescriptionvoid
Triggered after the given session has been just created.void
inputReady
(IOSession session, ByteBuffer src) Triggered when the given session has input pending.void
outputReady
(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:IOEventHandler
Triggered after the given session has been just created.- Parameters:
session
- the I/O session.- Throws:
IOException
-
inputReady
Description copied from interface:IOEventHandler
Triggered when the given session has input pending.- Parameters:
session
- the I/O session.- Throws:
IOException
-
outputReady
Description copied from interface:IOEventHandler
Triggered when the given session is ready for output.- Parameters:
session
- the I/O session.- Throws:
IOException
-
toString
-