Package oauth.signpost.basic
Class HttpURLConnectionResponseAdapter
- java.lang.Object
-
- oauth.signpost.basic.HttpURLConnectionResponseAdapter
-
- All Implemented Interfaces:
HttpResponse
public class HttpURLConnectionResponseAdapter extends java.lang.Object implements HttpResponse
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.HttpURLConnection
connection
-
Constructor Summary
Constructors Constructor Description HttpURLConnectionResponseAdapter(java.net.HttpURLConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getContent()
java.lang.String
getReasonPhrase()
int
getStatusCode()
java.lang.Object
unwrap()
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:
getContent
in interfaceHttpResponse
- Throws:
java.io.IOException
-
getStatusCode
public int getStatusCode() throws java.io.IOException
- Specified by:
getStatusCode
in interfaceHttpResponse
- Throws:
java.io.IOException
-
getReasonPhrase
public java.lang.String getReasonPhrase() throws java.lang.Exception
- Specified by:
getReasonPhrase
in interfaceHttpResponse
- Throws:
java.lang.Exception
-
unwrap
public java.lang.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
-
-