oauth.signpost.basic
Class HttpURLConnectionResponseAdapter

java.lang.Object
  extended by oauth.signpost.basic.HttpURLConnectionResponseAdapter
All Implemented Interfaces:
HttpResponse

public class HttpURLConnectionResponseAdapter
extends Object
implements HttpResponse


Constructor Summary
HttpURLConnectionResponseAdapter(HttpURLConnection connection)
           
 
Method Summary
 InputStream getContent()
           
 String getReasonPhrase()
           
 int getStatusCode()
           
 Object unwrap()
          Returns the underlying response object, in case you need to work on it directly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpURLConnectionResponseAdapter

public HttpURLConnectionResponseAdapter(HttpURLConnection connection)
Method Detail

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.