Class ClientH2IOEventHandler
java.lang.Object
org.apache.hc.core5.http2.impl.nio.ClientH2IOEventHandler
- All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.core5.http.HttpConnection, org.apache.hc.core5.http.impl.nio.HttpConnectionEventHandler, org.apache.hc.core5.http.SocketModalCloseable, org.apache.hc.core5.io.ModalCloseable, org.apache.hc.core5.reactor.IOEventHandler
IOEventHandler that implements
client side HTTP/2 messaging protocol with full support for
multiplexed message transmission.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode) voidconnected(org.apache.hc.core5.reactor.IOSession session) voiddisconnected(org.apache.hc.core5.reactor.IOSession session) voidorg.apache.hc.core5.http.EndpointDetailsorg.apache.hc.core5.http.ProtocolVersionorg.apache.hc.core5.util.TimeoutvoidinputReady(org.apache.hc.core5.reactor.IOSession session, ByteBuffer src) booleanisIdle()booleanisOpen()voidoutputReady(org.apache.hc.core5.reactor.IOSession session) voidsetSocketTimeout(org.apache.hc.core5.util.Timeout timeout) voidtimeout(org.apache.hc.core5.reactor.IOSession session, org.apache.hc.core5.util.Timeout timeout) toString()
-
Constructor Details
-
ClientH2IOEventHandler
-
-
Method Details
-
toString
-
connected
- Specified by:
connectedin interfaceorg.apache.hc.core5.reactor.IOEventHandler- Throws:
IOException
-
inputReady
public void inputReady(org.apache.hc.core5.reactor.IOSession session, ByteBuffer src) throws IOException - Specified by:
inputReadyin interfaceorg.apache.hc.core5.reactor.IOEventHandler- Throws:
IOException
-
outputReady
- Specified by:
outputReadyin interfaceorg.apache.hc.core5.reactor.IOEventHandler- Throws:
IOException
-
timeout
public void timeout(org.apache.hc.core5.reactor.IOSession session, org.apache.hc.core5.util.Timeout timeout) throws IOException - Specified by:
timeoutin interfaceorg.apache.hc.core5.reactor.IOEventHandler- Throws:
IOException
-
isIdle
public boolean isIdle()- Specified by:
isIdlein interfaceorg.apache.hc.core5.http.HttpConnection
-
exception
- Specified by:
exceptionin interfaceorg.apache.hc.core5.reactor.IOEventHandler
-
disconnected
public void disconnected(org.apache.hc.core5.reactor.IOSession session) - Specified by:
disconnectedin interfaceorg.apache.hc.core5.reactor.IOEventHandler
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.hc.core5.http.HttpConnection- Throws:
IOException
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode) - Specified by:
closein interfaceorg.apache.hc.core5.io.ModalCloseable
-
isOpen
public boolean isOpen()- Specified by:
isOpenin interfaceorg.apache.hc.core5.http.HttpConnection
-
setSocketTimeout
public void setSocketTimeout(org.apache.hc.core5.util.Timeout timeout) - Specified by:
setSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getSSLSession
- Specified by:
getSSLSessionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getEndpointDetails
public org.apache.hc.core5.http.EndpointDetails getEndpointDetails()- Specified by:
getEndpointDetailsin interfaceorg.apache.hc.core5.http.HttpConnection
-
getSocketTimeout
public org.apache.hc.core5.util.Timeout getSocketTimeout()- Specified by:
getSocketTimeoutin interfaceorg.apache.hc.core5.http.SocketModalCloseable
-
getProtocolVersion
public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()- Specified by:
getProtocolVersionin interfaceorg.apache.hc.core5.http.HttpConnection
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-
getLocalAddress
- Specified by:
getLocalAddressin interfaceorg.apache.hc.core5.http.HttpConnection
-