org.jboss.seam.social.scribe
Class RestResponseScribe
java.lang.Object
org.jboss.seam.social.scribe.RestResponseScribe
- All Implemented Interfaces:
- RestResponse
public class RestResponseScribe
- extends Object
- implements RestResponse
- Author:
- Antoine Sabot-Durand
RestResponseScribe
protected RestResponseScribe(org.scribe.model.Response response)
throws IOException
- Throws:
IOException
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.