Class HttpProxyResponse

java.lang.Object
org.apache.mina.proxy.handlers.http.HttpProxyResponse

public class HttpProxyResponse extends Object
HttpProxyResponse.java - Wrapper class for HTTP requests.
Since:
MINA 2.0.0-M3
  • Field Details

    • httpVersion

      private final String httpVersion
      The HTTP response protocol version.
    • statusLine

      private final String statusLine
      The HTTP response status line.
    • statusCode

      private final int statusCode
      The HTTP response status code;
    • headers

      private final Map<String, List<String>> headers
      The HTTP response headers.
    • body

      private String body
      The HTTP response body.
  • Constructor Details

    • HttpProxyResponse

      protected HttpProxyResponse(String httpVersion, String statusLine, Map<String, List<String>> headers)
      Constructor of an HTTP proxy response.
      Parameters:
      httpVersion - the protocol version
      statusLine - the response status line
      headers - the response headers
  • Method Details

    • getHttpVersion

      public final String getHttpVersion()
      Returns:
      the HTTP response protocol version.
    • getStatusCode

      public final int getStatusCode()
      Returns:
      the HTTP response status code.
    • getStatusLine

      public final String getStatusLine()
      Returns:
      the HTTP response status line.
    • getBody

      public String getBody()
      Returns:
      the HTTP response body.
    • setBody

      public void setBody(String body)
      Sets the HTTP response body.
      Parameters:
      body - The HTTP Body
    • getHeaders

      public final Map<String, List<String>> getHeaders()
      Returns:
      the HTTP response headers.