Class ServerH2StreamMultiplexer
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ServerH2StreamMultiplexer
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpConnection,SocketModalCloseable,ModalCloseable,Identifiable
I/O event handler for events fired by
ProtocolIOSession that implements
server side HTTP/2 messaging protocol with full support for
multiplexed message transmission.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionServerH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config) ServerH2StreamMultiplexer(ProtocolIOSession ioSession, FrameFactory frameFactory, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config, H2StreamListener streamListener) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidgetId()booleanisOpen()final voidfinal voidfinal voidonException(Exception cause) final voidonInput(ByteBuffer src) final voidonOutput()final voidvoidsetSocketTimeout(Timeout timeout) toString()
-
Constructor Details
-
ServerH2StreamMultiplexer
public ServerH2StreamMultiplexer(ProtocolIOSession ioSession, FrameFactory frameFactory, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config, H2StreamListener streamListener) -
ServerH2StreamMultiplexer
public ServerH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config)
-
-
Method Details
-
toString
-
getId
- Specified by:
getIdin interfaceIdentifiable
-
onConnect
- Throws:
HttpExceptionIOException
-
onInput
- Throws:
HttpExceptionIOException
-
onOutput
- Throws:
HttpExceptionIOException
-
onTimeout
- Throws:
HttpExceptionIOException
-
onDisconnect
public final void onDisconnect() -
onException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHttpConnection- Throws:
IOException
-
close
- Specified by:
closein interfaceModalCloseable
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceHttpConnection
-
setSocketTimeout
- Specified by:
setSocketTimeoutin interfaceSocketModalCloseable
-
getSSLSession
- Specified by:
getSSLSessionin interfaceHttpConnection
-
getEndpointDetails
- Specified by:
getEndpointDetailsin interfaceHttpConnection
-
getSocketTimeout
- Specified by:
getSocketTimeoutin interfaceSocketModalCloseable
-
getProtocolVersion
- Specified by:
getProtocolVersionin interfaceHttpConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceHttpConnection
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceHttpConnection
-