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 InputStreamgetContent()StringgetReasonPhrase()intgetStatusCode()Objectunwrap()
-
-
-
Method Detail
-
getContent
public InputStream getContent() throws IOException
- Specified by:
getContentin interfaceHttpResponse- Throws:
IOException
-
getStatusCode
public int getStatusCode() throws IOException- Specified by:
getStatusCodein interfaceHttpResponse- Throws:
IOException
-
getReasonPhrase
public String getReasonPhrase() throws Exception
- Specified by:
getReasonPhrasein interfaceHttpResponse- Throws:
Exception
-
unwrap
public Object unwrap()
- Specified by:
unwrapin interfaceHttpResponse
-
-