Class ServerH2IOEventHandler

java.lang.Object
org.apache.hc.core5.http2.impl.nio.ServerH2IOEventHandler
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

public class ServerH2IOEventHandler extends Object
IOEventHandler that implements server side HTTP/2 messaging protocol with full support for multiplexed message transmission.
Since:
5.0
  • Constructor Details

  • Method Details

    • toString

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

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

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

      public void outputReady(org.apache.hc.core5.reactor.IOSession session) throws IOException
      Specified by:
      outputReady in interface org.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:
      timeout in interface org.apache.hc.core5.reactor.IOEventHandler
      Throws:
      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, 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 IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.hc.core5.http.HttpConnection
      Throws:
      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 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 SocketAddress getRemoteAddress()
      Specified by:
      getRemoteAddress in interface org.apache.hc.core5.http.HttpConnection
    • getLocalAddress

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