Interface ResponseContext
-
- All Superinterfaces:
Message,ProtocolConstants,Response
- All Known Implementing Classes:
AbstractResponseContext,BaseResponseContext,CompressionFilter.CompressingResponseContextWrapper,EmptyResponseContext,EntityProviderResponseContext,MediaResponseContext,ResponseContextWrapper,SimpleResponseContext,StreamWriterResponseContext
@Deprecated public interface ResponseContext extends Response
Deprecated.Legacy AEM 6.x API.The ResponseContext encapsulates a server 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ResponseContextaddEncodedHeader(String name, String charset, String value)Deprecated.Add an RFC 2047 encoded header in the responseResponseContextaddEncodedHeaders(String name, String charset, String... vals)Deprecated.Add an RFC 2047 encoded header in the responseResponseContextaddHeader(String name, Object value)Deprecated.Add a header to the responseResponseContextaddHeaders(String name, Object... vals)Deprecated.Add a header to the responsebooleanhasEntity()Deprecated.True if the response contains an entitybooleanisBinary()Deprecated.True if the response contains a binary entity as opposed to a character based entity.ResponseContextremoveHeader(String name)Deprecated.Remove the specified header from the responseResponseContextsetAge(long age)Deprecated.Set the value of the Age headerResponseContextsetAllow(String method)Deprecated.Specify the HTTP methods allowedResponseContextsetAllow(String... methods)Deprecated.Specify the HTTP methods allowedResponseContextsetBinary(boolean binary)Deprecated.True if the response contains a binary entity as opposed to a character based entity.ResponseContextsetContentLanguage(String language)Deprecated.Set the value of the Content-Language headerResponseContextsetContentLength(long length)Deprecated.Set the value of the Content-Length headerResponseContextsetContentLocation(String uri)Deprecated.Set the value of the Content-Location headerResponseContextsetContentType(String type)Deprecated.Set the value of the Content-Type headerResponseContextsetContentType(String type, String charset)Deprecated.Set the value of the Content-Type headerResponseContextsetEncodedHeader(String name, String charset, String value)Deprecated.Set an RFC 2047 encoded header in the responseResponseContextsetEncodedHeader(String name, String charset, String... vals)Deprecated.Set an RFC 2047 encoded header in the responseResponseContextsetEntityTag(String etag)Deprecated.Set the value of the ETag headerResponseContextsetEntityTag(org.apache.abdera.util.EntityTag etag)Deprecated.Set the value of the ETag headerResponseContextsetEscapedHeader(String name, org.apache.abdera.i18n.text.CharUtils.Profile profile, String value)Deprecated.Set a pct-encoded header in the responseResponseContextsetExpires(Date date)Deprecated.Set the value of the Expires headerResponseContextsetHeader(String name, Object value)Deprecated.Set the value of a header in the responseResponseContextsetHeader(String name, Object... vals)Deprecated.Set the value of a header in the responseResponseContextsetLastModified(Date date)Deprecated.Set the value of the Last-Modified headerResponseContextsetLocation(String uri)Deprecated.Set the value of the Location headerResponseContextsetSlug(String slug)Deprecated.Set the value of the Slug headerResponseContextsetStatus(int status)Deprecated.Set the response status codeResponseContextsetStatusText(String text)Deprecated.Set the response status textResponseContextsetWriter(org.apache.abdera.writer.Writer writer)Deprecated.Set the Abdera Writer for this response.voidwriteTo(OutputStream out)Deprecated.Write the response out to the specified OutputStreamvoidwriteTo(OutputStream out, org.apache.abdera.writer.Writer writer)Deprecated.Write the response out to the specified OutputStreamvoidwriteTo(Writer javaWriter)Deprecated.Write the response out to the specified WritervoidwriteTo(Writer javaWriter, org.apache.abdera.writer.Writer abderaWriter)Deprecated.Write the response out to the specified Writer-
Methods inherited from interface org.apache.abdera.protocol.Message
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, 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
-
isBinary
boolean isBinary()
Deprecated.True if the response contains a binary entity as opposed to a character based entity. Default is false. If true, the AbderaServlet will pass in the OutputStream for writing out, if false, the AbderaServlet will pass in the Writer.
-
setBinary
ResponseContext setBinary(boolean binary)
Deprecated.True if the response contains a binary entity as opposed to a character based entity. Default is false. If true, the AbderaServlet will pass in the OutputStream for writing out, if false, the AbderaServlet will pass in the Writer.
-
hasEntity
boolean hasEntity()
Deprecated.True if the response contains an entity
-
writeTo
void writeTo(OutputStream out) throws IOException
Deprecated.Write the response out to the specified OutputStream- Throws:
IOException
-
writeTo
void writeTo(Writer javaWriter) throws IOException
Deprecated.Write the response out to the specified Writer- Throws:
IOException
-
writeTo
void writeTo(OutputStream out, org.apache.abdera.writer.Writer writer) throws IOException
Deprecated.Write the response out to the specified OutputStream- Throws:
IOException
-
writeTo
void writeTo(Writer javaWriter, org.apache.abdera.writer.Writer abderaWriter) throws IOException
Deprecated.Write the response out to the specified Writer- Throws:
IOException
-
setWriter
ResponseContext setWriter(org.apache.abdera.writer.Writer writer)
Deprecated.Set the Abdera Writer for this response. This can be used to customize the serialization of the response
-
removeHeader
ResponseContext removeHeader(String name)
Deprecated.Remove the specified header from the response
-
setEncodedHeader
ResponseContext setEncodedHeader(String name, String charset, String value)
Deprecated.Set an RFC 2047 encoded header in the response
-
setEncodedHeader
ResponseContext setEncodedHeader(String name, String charset, String... vals)
Deprecated.Set an RFC 2047 encoded header in the response
-
setEscapedHeader
ResponseContext setEscapedHeader(String name, org.apache.abdera.i18n.text.CharUtils.Profile profile, String value)
Deprecated.Set a pct-encoded header in the response
-
setHeader
ResponseContext setHeader(String name, Object value)
Deprecated.Set the value of a header in the response
-
setHeader
ResponseContext setHeader(String name, Object... vals)
Deprecated.Set the value of a header in the response
-
addEncodedHeader
ResponseContext addEncodedHeader(String name, String charset, String value)
Deprecated.Add an RFC 2047 encoded header in the response
-
addEncodedHeaders
ResponseContext addEncodedHeaders(String name, String charset, String... vals)
Deprecated.Add an RFC 2047 encoded header in the response
-
addHeader
ResponseContext addHeader(String name, Object value)
Deprecated.Add a header to the response
-
addHeaders
ResponseContext addHeaders(String name, Object... vals)
Deprecated.Add a header to the response
-
setAge
ResponseContext setAge(long age)
Deprecated.Set the value of the Age header
-
setContentLanguage
ResponseContext setContentLanguage(String language)
Deprecated.Set the value of the Content-Language header
-
setContentLength
ResponseContext setContentLength(long length)
Deprecated.Set the value of the Content-Length header
-
setContentLocation
ResponseContext setContentLocation(String uri)
Deprecated.Set the value of the Content-Location header
-
setSlug
ResponseContext setSlug(String slug)
Deprecated.Set the value of the Slug header
-
setContentType
ResponseContext setContentType(String type)
Deprecated.Set the value of the Content-Type header
-
setContentType
ResponseContext setContentType(String type, String charset)
Deprecated.Set the value of the Content-Type header
-
setEntityTag
ResponseContext setEntityTag(String etag)
Deprecated.Set the value of the ETag header
-
setEntityTag
ResponseContext setEntityTag(org.apache.abdera.util.EntityTag etag)
Deprecated.Set the value of the ETag header
-
setExpires
ResponseContext setExpires(Date date)
Deprecated.Set the value of the Expires header
-
setLastModified
ResponseContext setLastModified(Date date)
Deprecated.Set the value of the Last-Modified header
-
setLocation
ResponseContext setLocation(String uri)
Deprecated.Set the value of the Location header
-
setStatus
ResponseContext setStatus(int status)
Deprecated.Set the response status code
-
setStatusText
ResponseContext setStatusText(String text)
Deprecated.Set the response status text
-
setAllow
ResponseContext setAllow(String method)
Deprecated.Specify the HTTP methods allowed
-
setAllow
ResponseContext setAllow(String... methods)
Deprecated.Specify the HTTP methods allowed
-
-