org.jboss.seam.social.rest
Interface RestResponse

All Known Implementing Classes:
RestResponseScribe

public interface RestResponse

Implementation of this interface represent an Http Response

Author:
Antoine Sabot-Durand

Method Summary
 String getBody()
           
 int getCode()
           
 String getHeader(String name)
           
 Map<String,String> getHeaders()
           
 InputStream getStream()
           
 

Method Detail

getBody

String getBody()
Returns:
the body of the response in a String

getStream

InputStream getStream()
Returns:
the body of the response in a InputStream

getCode

int getCode()
Returns:
the HTTP return code of the response

getHeaders

Map<String,String> getHeaders()
Returns:
the HTTP Response headers in Map

getHeader

String getHeader(String name)
Parameters:
name - of the HTTP header
Returns:
the value of the HTTP header


Copyright © 2011 Seam Framework. All Rights Reserved.