Class AS2BHttpClientConnection

java.lang.Object
org.apache.camel.component.as2.api.io.AS2BHttpClientConnection
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hc.client5.http.io.ManagedHttpClientConnection, org.apache.hc.core5.http.HttpConnection, org.apache.hc.core5.http.io.BHttpConnection, org.apache.hc.core5.http.io.HttpClientConnection, org.apache.hc.core5.http.SocketModalCloseable, org.apache.hc.core5.io.ModalCloseable

public class AS2BHttpClientConnection extends Object implements org.apache.hc.client5.http.io.ManagedHttpClientConnection
  • Constructor Details

    • AS2BHttpClientConnection

      public AS2BHttpClientConnection(org.apache.hc.client5.http.io.ManagedHttpClientConnection mc)
  • Method Details

    • bind

      public void bind(Socket socket) throws IOException
      Specified by:
      bind in interface org.apache.hc.client5.http.io.ManagedHttpClientConnection
      Throws:
      IOException
    • getSocket

      public Socket getSocket()
      Specified by:
      getSocket in interface org.apache.hc.client5.http.io.ManagedHttpClientConnection
    • 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
    • getEndpointDetails

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

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

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

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

      public SSLSession getSSLSession()
      Specified by:
      getSSLSession in interface org.apache.hc.core5.http.HttpConnection
      Specified by:
      getSSLSession in interface org.apache.hc.client5.http.io.ManagedHttpClientConnection
    • isOpen

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

      public void passivate()
      Specified by:
      passivate in interface org.apache.hc.client5.http.io.ManagedHttpClientConnection
    • activate

      public void activate()
      Specified by:
      activate in interface org.apache.hc.client5.http.io.ManagedHttpClientConnection
    • isConsistent

      public boolean isConsistent()
      Specified by:
      isConsistent in interface org.apache.hc.core5.http.io.HttpClientConnection
    • sendRequestHeader

      public void sendRequestHeader(org.apache.hc.core5.http.ClassicHttpRequest request) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      sendRequestHeader in interface org.apache.hc.core5.http.io.HttpClientConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • terminateRequest

      public void terminateRequest(org.apache.hc.core5.http.ClassicHttpRequest request) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      terminateRequest in interface org.apache.hc.core5.http.io.HttpClientConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • sendRequestEntity

      public void sendRequestEntity(org.apache.hc.core5.http.ClassicHttpRequest request) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      sendRequestEntity in interface org.apache.hc.core5.http.io.HttpClientConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • receiveResponseHeader

      public org.apache.hc.core5.http.ClassicHttpResponse receiveResponseHeader() throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      receiveResponseHeader in interface org.apache.hc.core5.http.io.HttpClientConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • receiveResponseEntity

      public void receiveResponseEntity(org.apache.hc.core5.http.ClassicHttpResponse response) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      receiveResponseEntity in interface org.apache.hc.core5.http.io.HttpClientConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • isDataAvailable

      public boolean isDataAvailable(org.apache.hc.core5.util.Timeout timeout) throws IOException
      Specified by:
      isDataAvailable in interface org.apache.hc.core5.http.io.BHttpConnection
      Throws:
      IOException
    • isStale

      public boolean isStale() throws IOException
      Specified by:
      isStale in interface org.apache.hc.core5.http.io.BHttpConnection
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Specified by:
      flush in interface org.apache.hc.core5.http.io.BHttpConnection
      Throws:
      IOException
    • getSocketTimeout

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

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

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