Class HttpProxyResponse


  • public class HttpProxyResponse
    extends Object
    HttpProxyResponse.java - Wrapper class for HTTP requests.
    Since:
    MINA 2.0.0-M3
    Author:
    Apache MINA Project
    • Constructor Detail

      • 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 Detail

      • 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.