HttpResponse
public 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 HttpResponse
IOException
public int getStatusCode() throws IOException
getStatusCode
in interface HttpResponse
IOException
public String getReasonPhrase() throws Exception
getReasonPhrase
in interface HttpResponse
Exception
public Object unwrap()
HttpResponse
unwrap
in interface HttpResponse
Copyright © 2019. All rights reserved.