org.jboss.seam.social.scribe
Class RestResponseScribe

java.lang.Object
  extended by org.jboss.seam.social.scribe.RestResponseScribe
All Implemented Interfaces:
RestResponse

public class RestResponseScribe
extends Object
implements RestResponse

Author:
Antoine Sabot-Durand

Constructor Summary
protected RestResponseScribe(org.scribe.model.Response response)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBody()
           
 int getCode()
           
 String getHeader(String name)
           
 Map<String,String> getHeaders()
           
 InputStream getStream()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestResponseScribe

protected RestResponseScribe(org.scribe.model.Response response)
                      throws IOException
Throws:
IOException
Method Detail

getBody

public String getBody()
Specified by:
getBody in interface RestResponse
Returns:
the body of the response in a String

getStream

public InputStream getStream()
Specified by:
getStream in interface RestResponse
Returns:
the body of the response in a InputStream

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getCode

public int getCode()
Specified by:
getCode in interface RestResponse
Returns:
the HTTP return code of the response

getHeaders

public Map<String,String> getHeaders()
Specified by:
getHeaders in interface RestResponse
Returns:
the HTTP Response headers in Map

getHeader

public String getHeader(String name)
Specified by:
getHeader in interface RestResponse
Parameters:
name - of the HTTP header
Returns:
the value of the HTTP header

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Seam Framework. All Rights Reserved.