Class HttpProxyResponse
- java.lang.Object
-
- org.apache.mina.proxy.handlers.http.HttpProxyResponse
-
public class HttpProxyResponse extends java.lang.ObjectHttpProxyResponse.java - Wrapper class for HTTP requests.- Since:
- MINA 2.0.0-M3
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringbodyThe HTTP response body.private java.util.Map<java.lang.String,java.util.List<java.lang.String>>headersThe HTTP response headers.private java.lang.StringhttpVersionThe HTTP response protocol version.private intstatusCodeThe HTTP response status code;private java.lang.StringstatusLineThe HTTP response status line.
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpProxyResponse(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.StringgetBody()java.util.Map<java.lang.String,java.util.List<java.lang.String>>getHeaders()java.lang.StringgetHttpVersion()intgetStatusCode()java.lang.StringgetStatusLine()voidsetBody(java.lang.String body)Sets the HTTP response body.
-
-
-
Field Detail
-
httpVersion
private final java.lang.String httpVersion
The HTTP response protocol version.
-
statusLine
private final java.lang.String statusLine
The HTTP response status line.
-
statusCode
private final int statusCode
The HTTP response status code;
-
headers
private final java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers
The HTTP response headers.
-
body
private java.lang.String body
The HTTP response body.
-
-
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 versionstatusLine- the response status lineheaders- 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.
-
-