Class AbstractClientResponse
- java.lang.Object
-
- org.apache.abdera.protocol.util.AbstractMessage
-
- org.apache.abdera.protocol.util.AbstractResponse
-
- org.apache.abdera.protocol.client.AbstractClientResponse
-
- All Implemented Interfaces:
ClientResponse,Message,Response,ProtocolConstants
- Direct Known Subclasses:
CachedResponseBase,CommonsResponse
@Deprecated public abstract class AbstractClientResponse extends AbstractResponse implements ClientResponse
Deprecated.Legacy AEM 6.x API.Abstract base class for a ClientResponse
-
-
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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCharacterEncoding()Deprecated.Get the character set encoding specified by the server in the Content-Type headerDategetDateHeader(String header)Deprecated.Return the named HTTP header as a java.util.Date<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument()Deprecated.Get the response payload as a parsed Abdera FOM Document<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser)Deprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.ParserOptions options)Deprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser options<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options)Deprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser and parser optionsInputStreamgetInputStream()Deprecated.Get the response payload as an input streamReadergetReader()Deprecated.Get the response payload as a reader (assumed UTF-8 charset)ReadergetReader(String charset)Deprecated.Get the response payload as a reader using the specified charsetDategetServerDate()Deprecated.Return the date returned by the server in the responsevoidsetInputStream(InputStream in)Deprecated.Set the response input stream (used internally by Abdera)-
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic, setMaxAge, setMustRevalidate, setNoCache, setNoCacheHeaders, setNoStore, setNoTransform, setPrivate, setPrivateHeaders, setProxyRevalidate, setPublic
-
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.abdera.protocol.client.ClientResponse
getMethod, getUri, release
-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getStatus, getStatusText, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic
-
-
-
-
Method Detail
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument() throws org.apache.abdera.parser.ParseExceptionDeprecated.Get the response payload as a parsed Abdera FOM Document- Specified by:
getDocumentin interfaceClientResponse- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseExceptionDeprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser options- Specified by:
getDocumentin interfaceClientResponse- Parameters:
options- The parser options- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser) throws org.apache.abdera.parser.ParseExceptionDeprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser- Specified by:
getDocumentin interfaceClientResponse- Parameters:
parser- The parser- Throws:
org.apache.abdera.parser.ParseException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument(org.apache.abdera.parser.Parser parser, org.apache.abdera.parser.ParserOptions options) throws org.apache.abdera.parser.ParseExceptionDeprecated.Get the response payload as a parsed Abdera FOM Document using the specified parser and parser options- Specified by:
getDocumentin interfaceClientResponse- Parameters:
parser- The parseroptions- The parser options- Throws:
org.apache.abdera.parser.ParseException
-
getInputStream
public InputStream getInputStream() throws IOException
Deprecated.Get the response payload as an input stream- Specified by:
getInputStreamin interfaceClientResponse- Throws:
IOException
-
setInputStream
public void setInputStream(InputStream in)
Deprecated.Set the response input stream (used internally by Abdera)- Specified by:
setInputStreamin interfaceClientResponse
-
getReader
public Reader getReader() throws IOException
Deprecated.Get the response payload as a reader (assumed UTF-8 charset)- Specified by:
getReaderin interfaceClientResponse- Throws:
IOException
-
getReader
public Reader getReader(String charset) throws IOException
Deprecated.Get the response payload as a reader using the specified charset- Specified by:
getReaderin interfaceClientResponse- Parameters:
charset- The character set encoding- Throws:
IOException
-
getServerDate
public Date getServerDate()
Deprecated.Return the date returned by the server in the response- Specified by:
getServerDatein interfaceClientResponse
-
getCharacterEncoding
public String getCharacterEncoding()
Deprecated.Get the character set encoding specified by the server in the Content-Type header- Specified by:
getCharacterEncodingin interfaceClientResponse
-
getDateHeader
public Date getDateHeader(String header)
Deprecated.Return the named HTTP header as a java.util.Date- Specified by:
getDateHeaderin interfaceMessage
-
-