Class AxisHttpResponseImpl

java.lang.Object
org.apache.axis2.transport.http.server.AxisHttpResponseImpl
All Implemented Interfaces:
org.apache.axis2.kernel.OutTransportInfo, AxisHttpResponse, org.apache.hc.core5.http.HttpMessage, org.apache.hc.core5.http.MessageHeaders

public class AxisHttpResponseImpl extends Object implements AxisHttpResponse, org.apache.axis2.kernel.OutTransportInfo
  • Constructor Details

    • AxisHttpResponseImpl

      public AxisHttpResponseImpl(AxisHttpConnection conn, org.apache.hc.core5.http.ClassicHttpResponse response, org.apache.hc.core5.http.protocol.HttpProcessor httpproc, org.apache.hc.core5.http.protocol.HttpContext context)
  • Method Details

    • isCommitted

      public boolean isCommitted()
    • commit

      public void commit() throws IOException, org.apache.hc.core5.http.HttpException
      Throws:
      IOException
      org.apache.hc.core5.http.HttpException
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface AxisHttpResponse
    • getFirstHeader

      public org.apache.hc.core5.http.Header getFirstHeader(String name)
      Specified by:
      getFirstHeader in interface org.apache.hc.core5.http.MessageHeaders
    • getLastHeader

      public org.apache.hc.core5.http.Header getLastHeader(String name)
      Specified by:
      getLastHeader in interface org.apache.hc.core5.http.MessageHeaders
    • headerIterator

      public Iterator<org.apache.hc.core5.http.Header> headerIterator()
      Specified by:
      headerIterator in interface org.apache.hc.core5.http.MessageHeaders
    • headerIterator

      public Iterator<org.apache.hc.core5.http.Header> headerIterator(String name)
      Specified by:
      headerIterator in interface org.apache.hc.core5.http.MessageHeaders
    • setHeader

      public void setHeader(org.apache.hc.core5.http.Header header)
      Specified by:
      setHeader in interface org.apache.hc.core5.http.HttpMessage
    • setHeader

      public void setHeader(String name, Object value)
      Specified by:
      setHeader in interface org.apache.hc.core5.http.HttpMessage
    • setHeaders

      public void setHeaders(org.apache.hc.core5.http.Header[] headers)
      Specified by:
      setHeaders in interface org.apache.hc.core5.http.HttpMessage
    • setStatus

      public void setStatus(int sc)
      Specified by:
      setStatus in interface AxisHttpResponse
    • sendError

      public void sendError(int sc, String msg)
      Specified by:
      sendError in interface AxisHttpResponse
    • sendError

      public void sendError(int sc)
      Specified by:
      sendError in interface AxisHttpResponse
    • setContentType

      public void setContentType(String contentType)
      Specified by:
      setContentType in interface AxisHttpResponse
      Specified by:
      setContentType in interface org.apache.axis2.kernel.OutTransportInfo
    • addHeader

      public void addHeader(org.apache.hc.core5.http.Header header)
      Specified by:
      addHeader in interface org.apache.hc.core5.http.HttpMessage
    • addHeader

      public void addHeader(String name, Object value)
      Specified by:
      addHeader in interface org.apache.hc.core5.http.HttpMessage
    • getVersion

      public org.apache.hc.core5.http.ProtocolVersion getVersion()
      Specified by:
      getVersion in interface org.apache.hc.core5.http.HttpMessage
    • setVersion

      public void setVersion(org.apache.hc.core5.http.ProtocolVersion version)
      Specified by:
      setVersion in interface org.apache.hc.core5.http.HttpMessage
    • getHeaders

      public org.apache.hc.core5.http.Header[] getHeaders(String name)
      Specified by:
      getHeaders in interface org.apache.hc.core5.http.MessageHeaders
    • getHeaders

      public org.apache.hc.core5.http.Header[] getHeaders()
      Specified by:
      getHeaders in interface org.apache.hc.core5.http.MessageHeaders
    • removeHeader

      public boolean removeHeader(org.apache.hc.core5.http.Header header)
      Specified by:
      removeHeader in interface org.apache.hc.core5.http.HttpMessage
    • removeHeaders

      public boolean removeHeaders(String name)
      Specified by:
      removeHeaders in interface org.apache.hc.core5.http.HttpMessage
    • containsHeader

      public boolean containsHeader(String name)
      Specified by:
      containsHeader in interface org.apache.hc.core5.http.MessageHeaders
    • countHeaders

      public int countHeaders(String name)
      Specified by:
      countHeaders in interface org.apache.hc.core5.http.MessageHeaders
    • getHeader

      public org.apache.hc.core5.http.Header getHeader(String name) throws org.apache.hc.core5.http.ProtocolException
      Specified by:
      getHeader in interface org.apache.hc.core5.http.MessageHeaders
      Throws:
      org.apache.hc.core5.http.ProtocolException