|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.proxy.handlers.http.HttpProxyResponse
public class HttpProxyResponse
HttpProxyResponse.java - Wrapper class for HTTP requests.
Field Summary | |
---|---|
String |
body
The HTTP response body. |
Map<String,List<String>> |
headers
The HTTP response headers. |
String |
httpVersion
The HTTP response protocol version. |
int |
statusCode
The HTTP response status code; |
String |
statusLine
The HTTP response status line. |
Constructor Summary | |
---|---|
protected |
HttpProxyResponse(String httpVersion,
String statusLine,
Map<String,List<String>> headers)
Constructor of an HTTP proxy response. |
Method Summary | |
---|---|
String |
getBody()
Returns the HTTP response body. |
Map<String,List<String>> |
getHeaders()
Returns the HTTP response headers. |
String |
getHttpVersion()
Returns the HTTP response protocol version. |
int |
getStatusCode()
Returns the HTTP response status code. |
String |
getStatusLine()
Returns the HTTP response status line. |
void |
setBody(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 |
Field Detail |
---|
public final String httpVersion
public final String statusLine
public final int statusCode
public final Map<String,List<String>> headers
public String body
Constructor Detail |
---|
protected HttpProxyResponse(String httpVersion, String statusLine, Map<String,List<String>> headers)
httpVersion
- the protocol versionstatusLine
- the response status lineheaders
- the response headersMethod Detail |
---|
public final String getHttpVersion()
public final int getStatusCode()
public final String getStatusLine()
public String getBody()
public void setBody(String body)
public final Map<String,List<String>> getHeaders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |