Package oauth.signpost.basic
Class HttpURLConnectionResponseAdapter
- java.lang.Object
-
- oauth.signpost.basic.HttpURLConnectionResponseAdapter
-
- All Implemented Interfaces:
HttpResponse
public class HttpURLConnectionResponseAdapter extends Object implements HttpResponse
-
-
Constructor Summary
Constructors Constructor Description HttpURLConnectionResponseAdapter(HttpURLConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()StringgetReasonPhrase()intgetStatusCode()Objectunwrap()Returns the underlying response object, in case you need to work on it directly.
-
-
-
Constructor Detail
-
HttpURLConnectionResponseAdapter
public HttpURLConnectionResponseAdapter(HttpURLConnection connection)
-
-
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()
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
-
-