@Internal public class ServerH2StreamMultiplexer extends Object
ProtocolIOSession that implements
server side HTTP/2 messaging protocol with full support for
multiplexed message transmission.| Constructor and Description |
|---|
ServerH2StreamMultiplexer(ProtocolIOSession ioSession,
FrameFactory frameFactory,
HttpProcessor httpProcessor,
HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory,
CharCodingConfig charCodingConfig,
H2Config h2Config,
H2StreamListener streamListener) |
ServerH2StreamMultiplexer(ProtocolIOSession ioSession,
HttpProcessor httpProcessor,
HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory,
CharCodingConfig charCodingConfig,
H2Config h2Config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(CloseMode closeMode) |
EndpointDetails |
getEndpointDetails() |
String |
getId() |
SocketAddress |
getLocalAddress() |
ProtocolVersion |
getProtocolVersion() |
SocketAddress |
getRemoteAddress() |
Timeout |
getSocketTimeout() |
SSLSession |
getSSLSession() |
boolean |
isOpen() |
void |
onConnect() |
void |
onDisconnect() |
void |
onException(Exception cause) |
void |
onInput(ByteBuffer src) |
void |
onOutput() |
void |
onTimeout(Timeout timeout) |
void |
setSocketTimeout(Timeout timeout) |
String |
toString() |
public ServerH2StreamMultiplexer(ProtocolIOSession ioSession, FrameFactory frameFactory, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config, H2StreamListener streamListener)
public ServerH2StreamMultiplexer(ProtocolIOSession ioSession, HttpProcessor httpProcessor, HandlerFactory<AsyncServerExchangeHandler> exchangeHandlerFactory, CharCodingConfig charCodingConfig, H2Config h2Config)
public String getId()
getId in interface Identifiablepublic final void onConnect()
throws HttpException,
IOException
HttpExceptionIOExceptionpublic final void onInput(ByteBuffer src) throws HttpException, IOException
HttpExceptionIOExceptionpublic final void onOutput()
throws HttpException,
IOException
HttpExceptionIOExceptionpublic final void onTimeout(Timeout timeout) throws HttpException, IOException
HttpExceptionIOExceptionpublic final void onDisconnect()
public final void onException(Exception cause)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionIOExceptionpublic void close(CloseMode closeMode)
close in interface ModalCloseablepublic boolean isOpen()
isOpen in interface HttpConnectionpublic void setSocketTimeout(Timeout timeout)
setSocketTimeout in interface SocketModalCloseablepublic SSLSession getSSLSession()
getSSLSession in interface HttpConnectionpublic EndpointDetails getEndpointDetails()
getEndpointDetails in interface HttpConnectionpublic Timeout getSocketTimeout()
getSocketTimeout in interface SocketModalCloseablepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface HttpConnectionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface HttpConnectionpublic SocketAddress getLocalAddress()
getLocalAddress in interface HttpConnectionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.