Package oauth.signpost.commonshttp
Class HttpResponseAdapter
- java.lang.Object
-
- oauth.signpost.commonshttp.HttpResponseAdapter
-
- All Implemented Interfaces:
HttpResponse
public class HttpResponseAdapter extends Object implements HttpResponse
-
-
Constructor Summary
Constructors Constructor Description HttpResponseAdapter(org.apache.http.HttpResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
getContent
public InputStream getContent() throws IOException
- Specified by:
getContent
in interfaceHttpResponse
- Throws:
IOException
-
getStatusCode
public int getStatusCode() throws IOException
- Specified by:
getStatusCode
in interfaceHttpResponse
- Throws:
IOException
-
getReasonPhrase
public String getReasonPhrase() throws Exception
- Specified by:
getReasonPhrase
in interfaceHttpResponse
- Throws:
Exception
-
unwrap
public Object unwrap()
Description copied from interface:HttpResponse
Returns the underlying response object, in case you need to work on it directly.- Specified by:
unwrap
in interfaceHttpResponse
- Returns:
- the wrapped response object
-
-