oauth.signpost.basic
Class HttpURLConnectionResponseAdapter
java.lang.Object
oauth.signpost.basic.HttpURLConnectionResponseAdapter
- All Implemented Interfaces:
- HttpResponse
public class HttpURLConnectionResponseAdapter
- extends Object
- implements HttpResponse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpURLConnectionResponseAdapter
public HttpURLConnectionResponseAdapter(HttpURLConnection connection)
getContent
public InputStream getContent()
throws IOException
- Specified by:
getContent
in interface HttpResponse
- Throws:
IOException
getStatusCode
public int getStatusCode()
throws IOException
- Specified by:
getStatusCode
in interface HttpResponse
- Throws:
IOException
getReasonPhrase
public String getReasonPhrase()
throws Exception
- Specified by:
getReasonPhrase
in interface HttpResponse
- 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 interface HttpResponse
- Returns:
- the wrapped response object
Copyright © 2010. All Rights Reserved.