public class HttpResponseAdapter extends Object implements HttpResponse
| Constructor and Description |
|---|
HttpResponseAdapter(org.apache.http.HttpResponse response) |
| 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 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 © 2025. All rights reserved.