Class AxisHttpConnectionImpl

java.lang.Object
org.apache.axis2.transport.http.server.AxisHttpConnectionImpl
All Implemented Interfaces:
Closeable, AutoCloseable, AxisHttpConnection, org.apache.hc.core5.http.HttpConnection, org.apache.hc.core5.http.SocketModalCloseable, org.apache.hc.core5.io.ModalCloseable

public class AxisHttpConnectionImpl extends Object implements AxisHttpConnection
  • Constructor Details

    • AxisHttpConnectionImpl

      public AxisHttpConnectionImpl(String scheme, Socket socket, org.apache.hc.core5.http.config.Http1Config http1Config, org.apache.hc.core5.http.io.SocketConfig socketConfig) throws IOException
      Throws:
      IOException
  • Method Details

    • close

      public void close(org.apache.hc.core5.io.CloseMode closeMode)
      Specified by:
      close in interface org.apache.hc.core5.io.ModalCloseable
    • 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
    • isOpen

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

      public boolean isStale() throws IOException
      Throws:
      IOException
    • shutdown

      public void shutdown() throws IOException
      Throws:
      IOException
    • receiveRequest

      public org.apache.hc.core5.http.ClassicHttpRequest receiveRequest() throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      receiveRequest in interface AxisHttpConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • sendResponse

      public void sendResponse(org.apache.hc.core5.http.ClassicHttpResponse response) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      sendResponse in interface AxisHttpConnection
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • createContentInputStream

      public InputStream createContentInputStream(long len, org.apache.hc.core5.http.io.SessionInputBuffer buffer, InputStream inputStream)
    • createContentOutputStream

      public OutputStream createContentOutputStream(long len, org.apache.hc.core5.http.io.SessionOutputBuffer buffer, OutputStream outputStream, org.apache.hc.core5.function.Supplier<List<? extends org.apache.hc.core5.http.Header>> trailers)
    • getSocketHolder

      public org.apache.hc.core5.http.impl.io.SocketHolder getSocketHolder()
      Specified by:
      getSocketHolder in interface AxisHttpConnection
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface AxisHttpConnection
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface AxisHttpConnection
    • ensureOpen

      protected org.apache.hc.core5.http.impl.io.SocketHolder ensureOpen() throws IOException
      Throws:
      IOException
    • getProtocolVersion

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

      public void flush() throws IOException
      Specified by:
      flush in interface AxisHttpConnection
      Throws:
      IOException
    • reset

      public void reset() throws IOException
      Specified by:
      reset in interface AxisHttpConnection
      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
    • 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
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object