nl.hippo.client.api.content
Interface RawResponse

All Superinterfaces:
Serializable

public interface RawResponse
extends Serializable

The raw response of a server call.


Method Summary
 byte[] getResponseAsBytes()
           
 Document getResponseAsDom()
           
 String getResponseAsPrettyPrintedString(String encoding)
           
 InputStream getResponseAsStream()
           
 String getResponseAsString(String encoding)
           
 int getResponseCode()
          Returns the Http response code (207, 404, etc.)
 boolean isValid()
           
 void streamResponseToSaxContentHandler(DefaultHandler handler)
           
 

Method Detail

getResponseCode

int getResponseCode()
Returns the Http response code (207, 404, etc.)

Returns:
The Http response code (207, 404, etc.)

isValid

boolean isValid()
Returns:
true if responsecode is in the 200-299 range

getResponseAsBytes

byte[] getResponseAsBytes()

getResponseAsStream

InputStream getResponseAsStream()

getResponseAsString

String getResponseAsString(String encoding)
                           throws ClientException
Throws:
ClientException

getResponseAsPrettyPrintedString

String getResponseAsPrettyPrintedString(String encoding)
                                        throws ClientException
Throws:
ClientException

streamResponseToSaxContentHandler

void streamResponseToSaxContentHandler(DefaultHandler handler)
                                       throws ClientException
Throws:
ClientException

getResponseAsDom

Document getResponseAsDom()
                          throws ClientException
Throws:
ClientException


Copyright © 2006-2009 Hippo. All Rights Reserved.