Package oauth.signpost.commonshttp
Class HttpResponseAdapter
- java.lang.Object
-
- oauth.signpost.commonshttp.HttpResponseAdapter
-
- All Implemented Interfaces:
HttpResponse
public class HttpResponseAdapter extends java.lang.Object implements HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.HttpResponseresponse
-
Constructor Summary
Constructors Constructor Description HttpResponseAdapter(org.apache.http.HttpResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamgetContent()java.lang.StringgetReasonPhrase()intgetStatusCode()java.lang.Objectunwrap()Returns the underlying response object, in case you need to work on it directly.
-
-
-
Method Detail
-
getContent
public java.io.InputStream getContent() throws java.io.IOException- Specified by:
getContentin interfaceHttpResponse- Throws:
java.io.IOException
-
getStatusCode
public int getStatusCode() throws java.io.IOException- Specified by:
getStatusCodein interfaceHttpResponse- Throws:
java.io.IOException
-
getReasonPhrase
public java.lang.String getReasonPhrase() throws java.lang.Exception- Specified by:
getReasonPhrasein interfaceHttpResponse- Throws:
java.lang.Exception
-
unwrap
public java.lang.Object unwrap()
Description copied from interface:HttpResponseReturns the underlying response object, in case you need to work on it directly.- Specified by:
unwrapin interfaceHttpResponse- Returns:
- the wrapped response object
-
-