oauth.signpost.commonshttp
Class HttpResponseAdapter

java.lang.Object
  extended by oauth.signpost.commonshttp.HttpResponseAdapter
All Implemented Interfaces:
HttpResponse

public class HttpResponseAdapter
extends Object
implements HttpResponse


Constructor Summary
HttpResponseAdapter(org.apache.http.HttpResponse response)
           
 
Method Summary
 InputStream getContent()
           
 String getReasonPhrase()
           
 int getStatusCode()
           
 Object unwrap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpResponseAdapter

public HttpResponseAdapter(org.apache.http.HttpResponse response)
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()
Specified by:
unwrap in interface HttpResponse


Copyright © 2010. All Rights Reserved.