Class ResponseContextWrapper
- java.lang.Object
-
- org.apache.abdera.protocol.server.context.ResponseContextWrapper
-
- All Implemented Interfaces:
Message,Response,ResponseContext,ProtocolConstants
- Direct Known Subclasses:
CompressionFilter.CompressingResponseContextWrapper
@Deprecated public class ResponseContextWrapper extends Object implements ResponseContext
Deprecated.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ResponseContextWrapper(ResponseContext response)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete 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 responselonggetAge()Deprecated.Get the age of this response as specified by the serverStringgetAllow()Deprecated.Get the value of the Allow response headerStringgetCacheControl()Deprecated.Return the value of the Cache-Control headerStringgetContentLanguage()Deprecated.Return the value of the Content-Language headerlonggetContentLength()Deprecated.Get the value of the Content-Length response headerorg.apache.abdera.i18n.iri.IRIgetContentLocation()Deprecated.Return the value of the Content-Location headerMimeTypegetContentType()Deprecated.Return the value of the Content-Type headerDategetDateHeader(String name)Deprecated.Return the value of a Date headerStringgetDecodedHeader(String name)Deprecated.Get the decoded value of a RFC 2047 headerString[]getDecodedHeaders(String name)Deprecated.Return multiple decoded values for the specified headerorg.apache.abdera.util.EntityTaggetEntityTag()Deprecated.Get the Entity Tag returned by the serverDategetExpires()Deprecated.Get the date/time this response expiresStringgetHeader(String name)Deprecated.Get the value of the specified headerString[]getHeaderNames()Deprecated.Return a listing of header namesObject[]getHeaders(String name)Deprecated.Return multiple values for the specified headerDategetLastModified()Deprecated.Get the value of the Last-Modified response headerorg.apache.abdera.i18n.iri.IRIgetLocation()Deprecated.Get the value of the Location response headerlonggetMaxAge()Deprecated.Return the maximum-age as specified by the Cache-Control headerString[]getNoCacheHeaders()Deprecated.String[]getPrivateHeaders()Deprecated.StringgetSlug()Deprecated.Return the value of the Slug headerlonggetSMaxAge()Deprecated.intgetStatus()Deprecated.Get the specific response status codeStringgetStatusText()Deprecated.Get the response status textResponse.ResponseTypegetType()Deprecated.Get the response type classificationbooleanhasEntity()Deprecated.True if the response contains an entitybooleanisBinary()Deprecated.True if the response contains a binary entity as opposed to a character based entity.booleanisMustRevalidate()Deprecated.True if the Cache-Control header specifies the must-revalidate directivebooleanisNoCache()Deprecated.Return true if the Cache-Control header contains no-cachebooleanisNoStore()Deprecated.Return true if the Cache-Control header contains no-storebooleanisNoTransform()Deprecated.Return true if the Cache-Control header contains no-transformbooleanisPrivate()Deprecated.True if the Cache-Control header specifies the private directivebooleanisProxyRevalidate()Deprecated.True if the Cache-Control header specifies the proxy-revalidate directivebooleanisPublic()Deprecated.True if the Cache-Control header specified the public directiveResponseContextremoveHeader(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
-
-
-
Constructor Detail
-
ResponseContextWrapper
public ResponseContextWrapper(ResponseContext response)
Deprecated.
-
-
Method Detail
-
addEncodedHeader
public ResponseContext addEncodedHeader(String name, String charset, String value)
Deprecated.Description copied from interface:ResponseContextAdd an RFC 2047 encoded header in the response- Specified by:
addEncodedHeaderin interfaceResponseContext
-
addEncodedHeaders
public ResponseContext addEncodedHeaders(String name, String charset, String... vals)
Deprecated.Description copied from interface:ResponseContextAdd an RFC 2047 encoded header in the response- Specified by:
addEncodedHeadersin interfaceResponseContext
-
addHeader
public ResponseContext addHeader(String name, Object value)
Deprecated.Description copied from interface:ResponseContextAdd a header to the response- Specified by:
addHeaderin interfaceResponseContext
-
addHeaders
public ResponseContext addHeaders(String name, Object... vals)
Deprecated.Description copied from interface:ResponseContextAdd a header to the response- Specified by:
addHeadersin interfaceResponseContext
-
hasEntity
public boolean hasEntity()
Deprecated.Description copied from interface:ResponseContextTrue if the response contains an entity- Specified by:
hasEntityin interfaceResponseContext
-
removeHeader
public ResponseContext removeHeader(String name)
Deprecated.Description copied from interface:ResponseContextRemove the specified header from the response- Specified by:
removeHeaderin interfaceResponseContext
-
setAge
public ResponseContext setAge(long age)
Deprecated.Description copied from interface:ResponseContextSet the value of the Age header- Specified by:
setAgein interfaceResponseContext
-
setAllow
public ResponseContext setAllow(String method)
Deprecated.Description copied from interface:ResponseContextSpecify the HTTP methods allowed- Specified by:
setAllowin interfaceResponseContext
-
setAllow
public ResponseContext setAllow(String... methods)
Deprecated.Description copied from interface:ResponseContextSpecify the HTTP methods allowed- Specified by:
setAllowin interfaceResponseContext
-
setContentLanguage
public ResponseContext setContentLanguage(String language)
Deprecated.Description copied from interface:ResponseContextSet the value of the Content-Language header- Specified by:
setContentLanguagein interfaceResponseContext
-
setContentLength
public ResponseContext setContentLength(long length)
Deprecated.Description copied from interface:ResponseContextSet the value of the Content-Length header- Specified by:
setContentLengthin interfaceResponseContext
-
setContentLocation
public ResponseContext setContentLocation(String uri)
Deprecated.Description copied from interface:ResponseContextSet the value of the Content-Location header- Specified by:
setContentLocationin interfaceResponseContext
-
setContentType
public ResponseContext setContentType(String type)
Deprecated.Description copied from interface:ResponseContextSet the value of the Content-Type header- Specified by:
setContentTypein interfaceResponseContext
-
setContentType
public ResponseContext setContentType(String type, String charset)
Deprecated.Description copied from interface:ResponseContextSet the value of the Content-Type header- Specified by:
setContentTypein interfaceResponseContext
-
setEncodedHeader
public ResponseContext setEncodedHeader(String name, String charset, String value)
Deprecated.Description copied from interface:ResponseContextSet an RFC 2047 encoded header in the response- Specified by:
setEncodedHeaderin interfaceResponseContext
-
setEncodedHeader
public ResponseContext setEncodedHeader(String name, String charset, String... vals)
Deprecated.Description copied from interface:ResponseContextSet an RFC 2047 encoded header in the response- Specified by:
setEncodedHeaderin interfaceResponseContext
-
setEntityTag
public ResponseContext setEntityTag(String etag)
Deprecated.Description copied from interface:ResponseContextSet the value of the ETag header- Specified by:
setEntityTagin interfaceResponseContext
-
setEntityTag
public ResponseContext setEntityTag(org.apache.abdera.util.EntityTag etag)
Deprecated.Description copied from interface:ResponseContextSet the value of the ETag header- Specified by:
setEntityTagin interfaceResponseContext
-
setEscapedHeader
public ResponseContext setEscapedHeader(String name, org.apache.abdera.i18n.text.CharUtils.Profile profile, String value)
Deprecated.Description copied from interface:ResponseContextSet a pct-encoded header in the response- Specified by:
setEscapedHeaderin interfaceResponseContext
-
setExpires
public ResponseContext setExpires(Date date)
Deprecated.Description copied from interface:ResponseContextSet the value of the Expires header- Specified by:
setExpiresin interfaceResponseContext
-
setHeader
public ResponseContext setHeader(String name, Object value)
Deprecated.Description copied from interface:ResponseContextSet the value of a header in the response- Specified by:
setHeaderin interfaceResponseContext
-
setHeader
public ResponseContext setHeader(String name, Object... vals)
Deprecated.Description copied from interface:ResponseContextSet the value of a header in the response- Specified by:
setHeaderin interfaceResponseContext
-
setLastModified
public ResponseContext setLastModified(Date date)
Deprecated.Description copied from interface:ResponseContextSet the value of the Last-Modified header- Specified by:
setLastModifiedin interfaceResponseContext
-
setLocation
public ResponseContext setLocation(String uri)
Deprecated.Description copied from interface:ResponseContextSet the value of the Location header- Specified by:
setLocationin interfaceResponseContext
-
setSlug
public ResponseContext setSlug(String slug)
Deprecated.Description copied from interface:ResponseContextSet the value of the Slug header- Specified by:
setSlugin interfaceResponseContext
-
setStatus
public ResponseContext setStatus(int status)
Deprecated.Description copied from interface:ResponseContextSet the response status code- Specified by:
setStatusin interfaceResponseContext
-
setStatusText
public ResponseContext setStatusText(String text)
Deprecated.Description copied from interface:ResponseContextSet the response status text- Specified by:
setStatusTextin interfaceResponseContext
-
setWriter
public ResponseContext setWriter(org.apache.abdera.writer.Writer writer)
Deprecated.Description copied from interface:ResponseContextSet the Abdera Writer for this response. This can be used to customize the serialization of the response- Specified by:
setWriterin interfaceResponseContext
-
writeTo
public void writeTo(OutputStream out) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified OutputStream- Specified by:
writeToin interfaceResponseContext- Throws:
IOException
-
writeTo
public void writeTo(Writer javaWriter) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified Writer- Specified by:
writeToin interfaceResponseContext- Throws:
IOException
-
writeTo
public void writeTo(OutputStream out, org.apache.abdera.writer.Writer writer) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified OutputStream- Specified by:
writeToin interfaceResponseContext- Throws:
IOException
-
writeTo
public void writeTo(Writer javaWriter, org.apache.abdera.writer.Writer abderaWriter) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified Writer- Specified by:
writeToin interfaceResponseContext- Throws:
IOException
-
getAge
public long getAge()
Deprecated.Description copied from interface:ResponseGet the age of this response as specified by the server
-
getAllow
public String getAllow()
Deprecated.Description copied from interface:ResponseGet the value of the Allow response header
-
getContentLength
public long getContentLength()
Deprecated.Description copied from interface:ResponseGet the value of the Content-Length response header- Specified by:
getContentLengthin interfaceResponse
-
getEntityTag
public org.apache.abdera.util.EntityTag getEntityTag()
Deprecated.Description copied from interface:ResponseGet the Entity Tag returned by the server- Specified by:
getEntityTagin interfaceResponse
-
getExpires
public Date getExpires()
Deprecated.Description copied from interface:ResponseGet the date/time this response expires- Specified by:
getExpiresin interfaceResponse
-
getLastModified
public Date getLastModified()
Deprecated.Description copied from interface:ResponseGet the value of the Last-Modified response header- Specified by:
getLastModifiedin interfaceResponse
-
getLocation
public org.apache.abdera.i18n.iri.IRI getLocation()
Deprecated.Description copied from interface:ResponseGet the value of the Location response header- Specified by:
getLocationin interfaceResponse
-
getNoCacheHeaders
public String[] getNoCacheHeaders()
Deprecated.- Specified by:
getNoCacheHeadersin interfaceResponse
-
getPrivateHeaders
public String[] getPrivateHeaders()
Deprecated.- Specified by:
getPrivateHeadersin interfaceResponse
-
getSMaxAge
public long getSMaxAge()
Deprecated.- Specified by:
getSMaxAgein interfaceResponse
-
getStatus
public int getStatus()
Deprecated.Description copied from interface:ResponseGet the specific response status code
-
getStatusText
public String getStatusText()
Deprecated.Description copied from interface:ResponseGet the response status text- Specified by:
getStatusTextin interfaceResponse
-
getType
public Response.ResponseType getType()
Deprecated.Description copied from interface:ResponseGet the response type classification
-
isMustRevalidate
public boolean isMustRevalidate()
Deprecated.Description copied from interface:ResponseTrue if the Cache-Control header specifies the must-revalidate directive- Specified by:
isMustRevalidatein interfaceResponse
-
isPrivate
public boolean isPrivate()
Deprecated.Description copied from interface:ResponseTrue if the Cache-Control header specifies the private directive
-
isProxyRevalidate
public boolean isProxyRevalidate()
Deprecated.Description copied from interface:ResponseTrue if the Cache-Control header specifies the proxy-revalidate directive- Specified by:
isProxyRevalidatein interfaceResponse
-
isPublic
public boolean isPublic()
Deprecated.Description copied from interface:ResponseTrue if the Cache-Control header specified the public directive
-
getCacheControl
public String getCacheControl()
Deprecated.Description copied from interface:MessageReturn the value of the Cache-Control header- Specified by:
getCacheControlin interfaceMessage
-
getContentLanguage
public String getContentLanguage()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Language header- Specified by:
getContentLanguagein interfaceMessage
-
getContentLocation
public org.apache.abdera.i18n.iri.IRI getContentLocation()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Location header- Specified by:
getContentLocationin interfaceMessage
-
getContentType
public MimeType getContentType()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Type header- Specified by:
getContentTypein interfaceMessage
-
getDateHeader
public Date getDateHeader(String name)
Deprecated.Description copied from interface:MessageReturn the value of a Date header- Specified by:
getDateHeaderin interfaceMessage
-
getDecodedHeader
public String getDecodedHeader(String name)
Deprecated.Description copied from interface:MessageGet the decoded value of a RFC 2047 header- Specified by:
getDecodedHeaderin interfaceMessage
-
getDecodedHeaders
public String[] getDecodedHeaders(String name)
Deprecated.Description copied from interface:MessageReturn multiple decoded values for the specified header- Specified by:
getDecodedHeadersin interfaceMessage
-
getHeader
public String getHeader(String name)
Deprecated.Description copied from interface:MessageGet the value of the specified header
-
getHeaderNames
public String[] getHeaderNames()
Deprecated.Description copied from interface:MessageReturn a listing of header names- Specified by:
getHeaderNamesin interfaceMessage
-
getHeaders
public Object[] getHeaders(String name)
Deprecated.Description copied from interface:MessageReturn multiple values for the specified header- Specified by:
getHeadersin interfaceMessage
-
getMaxAge
public long getMaxAge()
Deprecated.Description copied from interface:MessageReturn the maximum-age as specified by the Cache-Control header
-
getSlug
public String getSlug()
Deprecated.Description copied from interface:MessageReturn the value of the Slug header
-
isNoCache
public boolean isNoCache()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-cache
-
isNoStore
public boolean isNoStore()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-store
-
isNoTransform
public boolean isNoTransform()
Deprecated.Description copied from interface:MessageReturn true if the Cache-Control header contains no-transform- Specified by:
isNoTransformin interfaceMessage
-
isBinary
public boolean isBinary()
Deprecated.Description copied from interface:ResponseContextTrue 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.- Specified by:
isBinaryin interfaceResponseContext
-
setBinary
public ResponseContext setBinary(boolean binary)
Deprecated.Description copied from interface:ResponseContextTrue 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.- Specified by:
setBinaryin interfaceResponseContext
-
-