base.interfaces
Interface IResponse

All Known Implementing Classes:
Response

public interface IResponse

Defines a request's response.


Method Summary
 java.lang.String getBody()
          Returns the content of the response as a String.
 java.io.InputStream getBodyStream()
          Returns the raw InputStream of the response.
 java.util.Map<java.lang.String,java.lang.String> getHeaders()
          Returns the headers included in the request's response.
 IItem getItem()
          Returns the response's content as an Item.
 java.lang.String getPhrase()
          Indicates the phrase of the response status.
 int getStatus()
          Indicates the status of the request (e.g.
 

Method Detail

getStatus

int getStatus()
Indicates the status of the request (e.g. 200)


getBody

java.lang.String getBody()
Returns the content of the response as a String.

Returns:
String is the body of the response interpreted as a String

getBodyStream

java.io.InputStream getBodyStream()
Returns the raw InputStream of the response.

Returns:
InputStream is a stream of bytes composing the response content

getItem

IItem getItem()
Returns the response's content as an Item.

Returns:
IItem is the response's content as an Item

getPhrase

java.lang.String getPhrase()
Indicates the phrase of the response status.

Returns:
String is the phrase corresponding with the status

getHeaders

java.util.Map<java.lang.String,java.lang.String> getHeaders()
Returns the headers included in the request's response.

Returns:
Map are the respone's headers