public class HttpURLConnectionResponseAdapter extends Object implements HttpResponse
| Constructor and Description |
|---|
HttpURLConnectionResponseAdapter(HttpURLConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
String |
getReasonPhrase() |
int |
getStatusCode() |
Object |
unwrap()
Returns the underlying response object, in case you need to work on it
directly.
|
public HttpURLConnectionResponseAdapter(HttpURLConnection connection)
public InputStream getContent() throws IOException
getContent in interface HttpResponseIOExceptionpublic int getStatusCode()
throws IOException
getStatusCode in interface HttpResponseIOExceptionpublic String getReasonPhrase() throws Exception
getReasonPhrase in interface HttpResponseExceptionpublic Object unwrap()
HttpResponseunwrap in interface HttpResponseCopyright © 2020. All rights reserved.