HttpResponsepublic class HttpResponseAdapter extends Object implements HttpResponse
| Constructor | Description |
|---|---|
HttpResponseAdapter(org.apache.http.HttpResponse response) |
| Modifier and Type | Method | Description |
|---|---|---|
InputStream |
getContent() |
|
String |
getReasonPhrase() |
|
int |
getStatusCode() |
|
Object |
unwrap() |
Returns the underlying response object, in case you need to work on it
directly.
|
public HttpResponseAdapter(org.apache.http.HttpResponse response)
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 © 2019. All rights reserved.