Class AbstractResponseContext
- java.lang.Object
-
- org.apache.abdera.protocol.util.AbstractMessage
-
- org.apache.abdera.protocol.util.AbstractResponse
-
- org.apache.abdera.protocol.server.context.AbstractResponseContext
-
- All Implemented Interfaces:
Message,Response,ResponseContext,ProtocolConstants
- Direct Known Subclasses:
BaseResponseContext,SimpleResponseContext
@Deprecated public abstract class AbstractResponseContext extends AbstractResponse 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 AbstractResponseContext()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 responseStringgetCacheControl()Deprecated.Return the value of the Cache-Control headerDategetDateHeader(String name)Deprecated.Return the value of a Date headerStringgetHeader(String name)Deprecated.Get the value of the specified headerString[]getHeaderNames()Deprecated.Return a listing of header namesMap<String,Object[]>getHeaders()Deprecated.Object[]getHeaders(String name)Deprecated.Return multiple values for the specified headerintgetStatus()Deprecated.Get the specific response status codeStringgetStatusText()Deprecated.Get the response status textbooleanisBinary()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.-
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
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.Message
getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getContentLength, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic
-
-
-
-
Method Detail
-
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
-
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
-
removeHeader
public ResponseContext removeHeader(String name)
Deprecated.Description copied from interface:ResponseContextRemove the specified header from the response- Specified by:
removeHeaderin 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
-
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
-
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
-
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
-
getDateHeader
public Date getDateHeader(String name)
Deprecated.Description copied from interface:MessageReturn the value of a Date header- Specified by:
getDateHeaderin interfaceMessage
-
getHeader
public String getHeader(String name)
Deprecated.Description copied from interface:MessageGet the value of the specified header
-
getHeaders
public Object[] getHeaders(String name)
Deprecated.Description copied from interface:MessageReturn multiple values for the specified header- Specified by:
getHeadersin interfaceMessage
-
getHeaderNames
public String[] getHeaderNames()
Deprecated.Description copied from interface:MessageReturn a listing of header names- Specified by:
getHeaderNamesin interfaceMessage
-
getCacheControl
public String getCacheControl()
Deprecated.Description copied from interface:MessageReturn the value of the Cache-Control header- Specified by:
getCacheControlin interfaceMessage- Overrides:
getCacheControlin classAbstractMessage
-
setAge
public ResponseContext setAge(long age)
Deprecated.Description copied from interface:ResponseContextSet the value of the Age header- Specified by:
setAgein 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
-
setSlug
public ResponseContext setSlug(String slug)
Deprecated.Description copied from interface:ResponseContextSet the value of the Slug header- Specified by:
setSlugin 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
-
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
-
setExpires
public ResponseContext setExpires(Date date)
Deprecated.Description copied from interface:ResponseContextSet the value of the Expires header- Specified by:
setExpiresin 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
-
getStatus
public int getStatus()
Deprecated.Description copied from interface:ResponseGet the specific response status code
-
setStatus
public ResponseContext setStatus(int status)
Deprecated.Description copied from interface:ResponseContextSet the response status code- Specified by:
setStatusin interfaceResponseContext
-
getStatusText
public String getStatusText()
Deprecated.Description copied from interface:ResponseGet the response status text- Specified by:
getStatusTextin interfaceResponse
-
setStatusText
public ResponseContext setStatusText(String text)
Deprecated.Description copied from interface:ResponseContextSet the response status text- Specified by:
setStatusTextin 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
-
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
-
-