public class URLConnectionResponse extends HttpResponseMessage
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 |
---|
URLConnectionResponse(HttpMessage request,
String requestHeaders,
byte[] requestExcerpt,
URLConnection connection)
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(Map<String,Object> into)
Return a complete description of the HTTP exchange.
|
protected String |
getHeaderField(URLConnection connection,
int index) |
protected String |
getHeaderFieldKey(URLConnection connection,
int index) |
int |
getStatusCode() |
InputStream |
openBody() |
getBody, getContentCharset, getHeader, newRequest, removeHeaders
public URLConnectionResponse(HttpMessage request, String requestHeaders, byte[] requestExcerpt, URLConnection connection) throws IOException
IOException
public int getStatusCode() throws IOException
getStatusCode
in class HttpResponseMessage
IOException
public InputStream openBody()
openBody
in class HttpMessage
protected String getHeaderField(URLConnection connection, int index)
protected String getHeaderFieldKey(URLConnection connection, int index)
public void dump(Map<String,Object> into) throws IOException
dump
in class HttpResponseMessage
IOException
Copyright © 2023. All rights reserved.