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 InputStream
getContent()
String
getReasonPhrase()
int
getStatusCode()
Object
unwrap()
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:
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
-
-