public class HttpProxyResponse
extends java.lang.Object
限定符 | 构造器和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
protected HttpProxyResponse(java.lang.String httpVersion, java.lang.String statusLine, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
httpVersion
- the protocol versionstatusLine
- the response status lineheaders
- the response headerspublic final java.lang.String getHttpVersion()
public final int getStatusCode()
public final java.lang.String getStatusLine()
public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- The HTTP Bodypublic final java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()