Class ServerH2PrefaceHandler
java.lang.Object
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
-
Constructor Summary
ConstructorsConstructorDescriptionServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, FutureCallback<ProtocolIOSession> resultCallback, Callback<Exception> exceptionCallback) ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidvoiddisconnected(IOSession session) voidvoidinputReady(IOSession session, ByteBuffer src) booleanisOpen()voidoutputReady(IOSession session) voidsetSocketTimeout(Timeout timeout) voidtoString()
-
Constructor Details
-
ServerH2PrefaceHandler
public ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, Callback<Exception> exceptionCallback) -
ServerH2PrefaceHandler
public ServerH2PrefaceHandler(ProtocolIOSession ioSession, ServerH2StreamMultiplexerFactory http2StreamHandlerFactory, FutureCallback<ProtocolIOSession> resultCallback, Callback<Exception> exceptionCallback)
-
-
Method Details
-
connected
- Throws:
IOException
-
inputReady
- Throws:
IOException
-
outputReady
- Throws:
IOException
-
toString
-
timeout
- Specified by:
timeoutin interfaceIOEventHandler
-
exception
- Specified by:
exceptionin interfaceIOEventHandler
-
disconnected
- Specified by:
disconnectedin interfaceIOEventHandler
-
getSSLSession
- Specified by:
getSSLSessionin interfaceHttpConnection
-
getEndpointDetails
- Specified by:
getEndpointDetailsin interfaceHttpConnection
-
setSocketTimeout
- Specified by:
setSocketTimeoutin interfaceSocketModalCloseable
-
getSocketTimeout
- Specified by:
getSocketTimeoutin interfaceSocketModalCloseable
-
getProtocolVersion
- Specified by:
getProtocolVersionin interfaceHttpConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceHttpConnection
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceHttpConnection
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceHttpConnection
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHttpConnection- Throws:
IOException
-
close
- Specified by:
closein interfaceModalCloseable
-