@Internal public class H2OnlyClientProtocolNegotiator extends Object
ProtocolIOSession
that implements
client side of the HTTP/2 protocol negotiation handshake always forcing the choice
of HTTP/2.Constructor and Description |
---|
H2OnlyClientProtocolNegotiator(ProtocolIOSession ioSession,
ClientH2StreamMultiplexerFactory http2StreamHandlerFactory,
boolean strictALPNHandshake) |
H2OnlyClientProtocolNegotiator(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 H2OnlyClientProtocolNegotiator(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake)
public H2OnlyClientProtocolNegotiator(ProtocolIOSession ioSession, ClientH2StreamMultiplexerFactory http2StreamHandlerFactory, boolean strictALPNHandshake, FutureCallback<ProtocolIOSession> resultCallback)
public void connected(IOSession session) throws IOException
IOException
public void outputReady(IOSession session) throws IOException
IOException
public void inputReady(IOSession session, ByteBuffer src) throws IOException
IOException
public void timeout(IOSession session, Timeout timeout)
timeout
in interface IOEventHandler
public void exception(IOSession session, Exception cause)
exception
in interface IOEventHandler
public void disconnected(IOSession session)
disconnected
in interface IOEventHandler
public SSLSession getSSLSession()
getSSLSession
in interface HttpConnection
public EndpointDetails getEndpointDetails()
getEndpointDetails
in interface HttpConnection
public void setSocketTimeout(Timeout timeout)
setSocketTimeout
in interface SocketModalCloseable
public Timeout getSocketTimeout()
getSocketTimeout
in interface SocketModalCloseable
public ProtocolVersion getProtocolVersion()
getProtocolVersion
in interface HttpConnection
public SocketAddress getRemoteAddress()
getRemoteAddress
in interface HttpConnection
public SocketAddress getLocalAddress()
getLocalAddress
in interface HttpConnection
public boolean isOpen()
isOpen
in interface HttpConnection
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface HttpConnection
IOException
public void close(CloseMode closeMode)
close
in interface ModalCloseable
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.