public class URLConnectionResponse extends HttpResponseMessage
EOL, LOCATION, STATUS_CODE, STATUS_OKACCEPT_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, removeHeaderspublic URLConnectionResponse(HttpMessage request, String requestHeaders, byte[] requestExcerpt, URLConnection connection) throws IOException
IOExceptionpublic int getStatusCode()
throws IOException
getStatusCode in class HttpResponseMessageIOExceptionpublic InputStream openBody()
openBody in class HttpMessageprotected 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 HttpResponseMessageIOExceptionCopyright © 2025. All rights reserved.