public class HttpMethodResponse extends HttpResponseMessage
Modifier and Type | Field and Description |
---|---|
private org.apache.http.client.methods.HttpRequestBase |
httpRequest |
private org.apache.http.HttpResponse |
httpResponse |
private byte[] |
requestBody |
private java.lang.String |
requestEncoding |
EOL, LOCATION, STATUS_CODE, STATUS_OK
ACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, method, REQUEST, RESPONSE, url
Constructor and Description |
---|
HttpMethodResponse(org.apache.http.client.methods.HttpRequestBase request,
org.apache.http.HttpResponse response,
byte[] requestBody,
java.lang.String requestEncoding)
Construct an OAuthMessage from the HTTP response, including parameters
from OAuth WWW-Authenticate headers and the body.
|
Modifier and Type | Method and Description |
---|---|
void |
dump(java.util.Map<java.lang.String,java.lang.Object> into)
Return a complete description of the HTTP exchange.
|
private java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> |
getHeaders() |
int |
getStatusCode() |
java.io.InputStream |
openBody() |
getBody, getContentCharset, getHeader, newRequest, removeHeaders
private final org.apache.http.client.methods.HttpRequestBase httpRequest
private final org.apache.http.HttpResponse httpResponse
private final byte[] requestBody
private final java.lang.String requestEncoding
public HttpMethodResponse(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.HttpResponse response, byte[] requestBody, java.lang.String requestEncoding) throws java.io.IOException
java.io.IOException
public int getStatusCode()
getStatusCode
in class HttpResponseMessage
public java.io.InputStream openBody() throws java.io.IOException
openBody
in class HttpMessage
java.io.IOException
private java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeaders()
public void dump(java.util.Map<java.lang.String,java.lang.Object> into) throws java.io.IOException
dump
in class HttpResponseMessage
java.io.IOException