org.apache.abdera.protocol.client
Interface ClientResponse

All Superinterfaces:
ProtocolConstants, Response
All Known Subinterfaces:
CachedResponse
All Known Implementing Classes:
AbstractClientResponse, CachedResponseBase, CommonsResponse, InMemoryCachedResponse

public interface ClientResponse
extends Response


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response
Response.ResponseType
 
Field Summary
 
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE
 
Method Summary
 java.lang.String getCharacterEncoding()
          Return the character set encoding specified in the ContentType header, if ant
<T extends Element>
Document<T>
getDocument()
          If the response contains an XML document, parse the document
<T extends Element>
Document<T>
getDocument(Parser parser)
          If the response contains an XML document, parse the document using the specified Parser
<T extends Element>
Document<T>
getDocument(ParserOptions options)
          If the response contains an XML document, parse the document using the specified ParserOptions
<T extends Element>
Document<T>
getDocument(Parser parser, ParserOptions options)
          If the response contains an XML document, parse the document using the specified Parser and ParserOptions
 java.io.InputStream getInputStream()
          Returns the inputstream used to read data from this response
 java.lang.String getMethod()
          Return the request method
 java.io.Reader getReader()
          Returns a reader used to read data from this response.
 java.io.Reader getReader(java.lang.String charset)
          Returns a reader used to read data from this response.
 java.util.Date getServerDate()
          Return the server-specified date returned in the response
 java.lang.String getUri()
          Return the request URI.
 void release()
          Release the resources associated with this response
 void setInputStream(java.io.InputStream in)
           
 
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getCacheControl, getContentLanguage, getContentLength, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getEntityTag, getExpires, getHeader, getHeaderNames, getHeaders, getHeaders, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getStatus, getStatusText, getType, getUriHeader, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic
 

Method Detail

getMethod

java.lang.String getMethod()
Return the request method


getUri

java.lang.String getUri()
Return the request URI. The request was redirected, this will return the new URI


release

void release()
Release the resources associated with this response


getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns the inputstream used to read data from this response

Throws:
java.io.IOException

getReader

java.io.Reader getReader()
                         throws java.io.IOException
Returns a reader used to read data from this response. Will use the character set declared in the Content-Type to create the reader

Throws:
java.io.IOException

getReader

java.io.Reader getReader(java.lang.String charset)
                         throws java.io.IOException
Returns a reader used to read data from this response. Will use the character set specified to create the reader

Throws:
java.io.IOException

setInputStream

void setInputStream(java.io.InputStream in)

getDocument

<T extends Element> Document<T> getDocument()
                                        throws ParseException
If the response contains an XML document, parse the document

Throws:
ParseException

getDocument

<T extends Element> Document<T> getDocument(ParserOptions options)
                                        throws ParseException
If the response contains an XML document, parse the document using the specified ParserOptions

Throws:
ParseException

getDocument

<T extends Element> Document<T> getDocument(Parser parser)
                                        throws ParseException
If the response contains an XML document, parse the document using the specified Parser

Throws:
ParseException

getDocument

<T extends Element> Document<T> getDocument(Parser parser,
                                            ParserOptions options)
                                        throws ParseException
If the response contains an XML document, parse the document using the specified Parser and ParserOptions

Throws:
ParseException

getServerDate

java.util.Date getServerDate()
Return the server-specified date returned in the response


getCharacterEncoding

java.lang.String getCharacterEncoding()
Return the character set encoding specified in the ContentType header, if ant