public abstract class AbstractClientResponse extends AbstractResponse implements ClientResponse
Response.ResponseTypeNOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCharacterEncoding()
Get the character set encoding specified by the server in the Content-Type header
|
java.util.Date |
getDateHeader(java.lang.String header)
Return the named HTTP header as a java.util.Date
|
<T extends Element> |
getDocument()
Get the response payload as a parsed Abdera FOM Document
|
<T extends Element> |
getDocument(org.apache.abdera.parser.Parser parser)
Get the response payload as a parsed Abdera FOM Document
using the specified parser
|
<T extends Element> |
getDocument(org.apache.abdera.parser.ParserOptions options)
Get the response payload as a parsed Abdera FOM Document using
the specified parser options
|
<T extends Element> |
getDocument(org.apache.abdera.parser.Parser parser,
org.apache.abdera.parser.ParserOptions options)
Get the response payload as a parsed Abdera FOM Document using
the specified parser and parser options
|
java.io.InputStream |
getInputStream()
Get the response payload as an input stream
|
java.io.Reader |
getReader()
Get the response payload as a reader (assumed UTF-8 charset)
|
java.io.Reader |
getReader(java.lang.String charset)
Get the response payload as a reader using the specified charset
|
java.util.Date |
getServerDate()
Return the date returned by the server in the response
|
void |
setInputStream(java.io.InputStream in)
Set the response input stream (used internally by Abdera)
|
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublicgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getUri, releasegetAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getStatus, getStatusText, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublicgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformpublic <T extends Element> Document<T> getDocument() throws org.apache.abdera.parser.ParseException
getDocument in interface ClientResponseorg.apache.abdera.parser.ParseExceptionpublic <T extends Element> Document<T> getDocument(org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
getDocument in interface ClientResponseoptions - The parser optionsorg.apache.abdera.parser.ParseExceptionpublic <T extends Element> Document<T> getDocument(org.apache.abdera.parser.Parser parser) throws org.apache.abdera.parser.ParseException
getDocument in interface ClientResponseparser - The parserorg.apache.abdera.parser.ParseExceptionpublic <T extends Element> Document<T> getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseException
getDocument in interface ClientResponseparser - The parseroptions - The parser optionsorg.apache.abdera.parser.ParseExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface ClientResponsejava.io.IOExceptionpublic void setInputStream(java.io.InputStream in)
setInputStream in interface ClientResponsepublic java.io.Reader getReader()
throws java.io.IOException
getReader in interface ClientResponsejava.io.IOExceptionpublic java.io.Reader getReader(java.lang.String charset)
throws java.io.IOException
getReader in interface ClientResponsecharset - The character set encodingjava.io.IOExceptionpublic java.util.Date getServerDate()
getServerDate in interface ClientResponsepublic java.lang.String getCharacterEncoding()
getCharacterEncoding in interface ClientResponsepublic java.util.Date getDateHeader(java.lang.String header)
getDateHeader in interface MessageCopyright © 2010 - 2020 Adobe. All Rights Reserved