public class HttpMethodResponse extends HttpResponseMessage
| Modifier and Type | Field and Description |
|---|---|
private org.apache.commons.httpclient.HttpMethod |
method |
private byte[] |
requestBody |
private java.lang.String |
requestEncoding |
EOL, LOCATION, STATUS_CODE, STATUS_OKACCEPT_ENCODING, body, CONTENT_ENCODING, CONTENT_LENGTH, CONTENT_TYPE, DEFAULT_CHARSET, headers, REQUEST, RESPONSE, url| Constructor and Description |
|---|
HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method,
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, removeHeadersprivate final org.apache.commons.httpclient.HttpMethod method
private final byte[] requestBody
private final java.lang.String requestEncoding
public HttpMethodResponse(org.apache.commons.httpclient.HttpMethod method,
byte[] requestBody,
java.lang.String requestEncoding)
throws java.io.IOException
java.io.IOExceptionpublic int getStatusCode()
getStatusCode in class HttpResponseMessagepublic java.io.InputStream openBody()
throws java.io.IOException
openBody in class HttpMessagejava.io.IOExceptionprivate 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 HttpResponseMessagejava.io.IOException