Class HttpProxyResponse


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

      Constructors 
      Modifier Constructor Description
      protected HttpProxyResponse​(java.lang.String httpVersion, java.lang.String statusLine, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers)
      Constructor of an HTTP proxy response.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getBody()  
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getHeaders()  
      java.lang.String getHttpVersion()  
      int getStatusCode()  
      java.lang.String getStatusLine()  
      void setBody​(java.lang.String body)
      Sets the HTTP response body.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpProxyResponse

        protected HttpProxyResponse​(java.lang.String httpVersion,
                                    java.lang.String statusLine,
                                    java.util.Map<java.lang.String,​java.util.List<java.lang.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 java.lang.String getHttpVersion()
        Returns:
        the HTTP response protocol version.
      • getStatusCode

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

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

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

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

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