Class ClientH2IOEventHandler

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.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

    public class ClientH2IOEventHandler
    extends java.lang.Object
    IOEventHandler that implements client side HTTP/2 messaging protocol with full support for multiplexed message transmission.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void close​(org.apache.hc.core5.io.CloseMode closeMode)  
      void connected​(org.apache.hc.core5.reactor.IOSession session)  
      void disconnected​(org.apache.hc.core5.reactor.IOSession session)  
      void exception​(org.apache.hc.core5.reactor.IOSession session, java.lang.Exception cause)  
      org.apache.hc.core5.http.EndpointDetails getEndpointDetails()  
      java.net.SocketAddress getLocalAddress()  
      org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()  
      java.net.SocketAddress getRemoteAddress()  
      org.apache.hc.core5.util.Timeout getSocketTimeout()  
      javax.net.ssl.SSLSession getSSLSession()  
      void inputReady​(org.apache.hc.core5.reactor.IOSession session, java.nio.ByteBuffer src)  
      boolean isIdle()  
      boolean isOpen()  
      void outputReady​(org.apache.hc.core5.reactor.IOSession session)  
      void setSocketTimeout​(org.apache.hc.core5.util.Timeout timeout)  
      void timeout​(org.apache.hc.core5.reactor.IOSession session, org.apache.hc.core5.util.Timeout timeout)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • connected

        public void connected​(org.apache.hc.core5.reactor.IOSession session)
                       throws java.io.IOException
        Specified by:
        connected in interface org.apache.hc.core5.reactor.IOEventHandler
        Throws:
        java.io.IOException
      • inputReady

        public void inputReady​(org.apache.hc.core5.reactor.IOSession session,
                               java.nio.ByteBuffer src)
                        throws java.io.IOException
        Specified by:
        inputReady in interface org.apache.hc.core5.reactor.IOEventHandler
        Throws:
        java.io.IOException
      • outputReady

        public void outputReady​(org.apache.hc.core5.reactor.IOSession session)
                         throws java.io.IOException
        Specified by:
        outputReady in interface org.apache.hc.core5.reactor.IOEventHandler
        Throws:
        java.io.IOException
      • timeout

        public void timeout​(org.apache.hc.core5.reactor.IOSession session,
                            org.apache.hc.core5.util.Timeout timeout)
                     throws java.io.IOException
        Specified by:
        timeout in interface org.apache.hc.core5.reactor.IOEventHandler
        Throws:
        java.io.IOException
      • isIdle

        public boolean isIdle()
        Specified by:
        isIdle in interface org.apache.hc.core5.http.HttpConnection
      • exception

        public void exception​(org.apache.hc.core5.reactor.IOSession session,
                              java.lang.Exception cause)
        Specified by:
        exception in interface org.apache.hc.core5.reactor.IOEventHandler
      • disconnected

        public void disconnected​(org.apache.hc.core5.reactor.IOSession session)
        Specified by:
        disconnected in interface org.apache.hc.core5.reactor.IOEventHandler
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface org.apache.hc.core5.http.HttpConnection
        Throws:
        java.io.IOException
      • close

        public void close​(org.apache.hc.core5.io.CloseMode closeMode)
        Specified by:
        close in interface org.apache.hc.core5.io.ModalCloseable
      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface org.apache.hc.core5.http.HttpConnection
      • setSocketTimeout

        public void setSocketTimeout​(org.apache.hc.core5.util.Timeout timeout)
        Specified by:
        setSocketTimeout in interface org.apache.hc.core5.http.SocketModalCloseable
      • getSSLSession

        public javax.net.ssl.SSLSession getSSLSession()
        Specified by:
        getSSLSession in interface org.apache.hc.core5.http.HttpConnection
      • getEndpointDetails

        public org.apache.hc.core5.http.EndpointDetails getEndpointDetails()
        Specified by:
        getEndpointDetails in interface org.apache.hc.core5.http.HttpConnection
      • getSocketTimeout

        public org.apache.hc.core5.util.Timeout getSocketTimeout()
        Specified by:
        getSocketTimeout in interface org.apache.hc.core5.http.SocketModalCloseable
      • getProtocolVersion

        public org.apache.hc.core5.http.ProtocolVersion getProtocolVersion()
        Specified by:
        getProtocolVersion in interface org.apache.hc.core5.http.HttpConnection
      • getRemoteAddress

        public java.net.SocketAddress getRemoteAddress()
        Specified by:
        getRemoteAddress in interface org.apache.hc.core5.http.HttpConnection
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
        Specified by:
        getLocalAddress in interface org.apache.hc.core5.http.HttpConnection