org.apache.abdera.protocol.client
Interface ClientResponse

All Superinterfaces:
ProtocolConstants, Response, ResponseInfo
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
<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.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, getExpires, getHeader, getHeaderNames, getHeaders, getHeaders, getLastModified, getLocation, getMaxAge, getNoCacheHeaders, getPrivateHeaders, getSlug, getSMaxAge, getStatus, getStatusText, getType, getUriHeader, isMustRevalidate, isNoCache, isNoStore, isNoTransform, isPrivate, isProxyRevalidate, isPublic
 
Methods inherited from interface org.apache.abdera.protocol.ResponseInfo
getEntityTag
 

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

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