@Internal public class ClientH2PrefaceHandler extends Object
ProtocolIOSession that implements
client side of the HTTP/2 protocol negotiation handshake always forcing the choice
of HTTP/2.| Constructor and Description |
|---|
ClientH2PrefaceHandler(ProtocolIOSession ioSession,
ClientH2StreamMultiplexerFactory http2StreamHandlerFactory,
boolean strictALPNHandshake) |
ClientH2PrefaceHandler(ProtocolIOSession ioSession,
ClientH2StreamMultiplexerFactory http2StreamHandlerFactory,
boolean strictALPNHandshake,
FutureCallback<ProtocolIOSession> resultCallback) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
close(CloseMode closeMode) |
void |
connected(IOSession session) |
void |
disconnected(IOSession session) |
void |
exception(IOSession session,
Exception cause) |
EndpointDetails |
getEndpointDetails() |
SocketAddress |
getLocalAddress() |
ProtocolVersion |
getProtocolVersion() |
SocketAddress |
getRemoteAddress() |
Timeout |
getSocketTimeout() |
SSLSession |
getSSLSession() |
void |
inputReady(IOSession session,
ByteBuffer src) |
boolean |
isOpen() |
void |
outputReady(IOSession session) |
void |
setSocketTimeout(Timeout timeout) |
void |
timeout(IOSession session,
Timeout timeout) |
String |
toString() |
public ClientH2PrefaceHandler(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake)
public ClientH2PrefaceHandler(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake, FutureCallback<ProtocolIOSession> resultCallback)
public void connected(IOSession session) throws IOException
IOExceptionpublic void outputReady(IOSession session) throws IOException
IOExceptionpublic void inputReady(IOSession session, ByteBuffer src) throws IOException
IOExceptionpublic void timeout(IOSession session, Timeout timeout)
timeout in interface IOEventHandlerpublic void exception(IOSession session, Exception cause)
exception in interface IOEventHandlerpublic void disconnected(IOSession session)
disconnected in interface IOEventHandlerpublic SSLSession getSSLSession()
getSSLSession in interface HttpConnectionpublic EndpointDetails getEndpointDetails()
getEndpointDetails in interface HttpConnectionpublic void setSocketTimeout(Timeout timeout)
setSocketTimeout in interface SocketModalCloseablepublic Timeout getSocketTimeout()
getSocketTimeout in interface SocketModalCloseablepublic ProtocolVersion getProtocolVersion()
getProtocolVersion in interface HttpConnectionpublic SocketAddress getRemoteAddress()
getRemoteAddress in interface HttpConnectionpublic SocketAddress getLocalAddress()
getLocalAddress in interface HttpConnectionpublic boolean isOpen()
isOpen in interface HttpConnectionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HttpConnectionIOExceptionpublic void close(CloseMode closeMode)
close in interface ModalCloseableCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.