Class BaseResponseContext<T extends org.apache.abdera.model.Base>
- java.lang.Object
-
- org.apache.abdera.protocol.util.AbstractMessage
-
- org.apache.abdera.protocol.util.AbstractResponse
-
- org.apache.abdera.protocol.server.context.AbstractResponseContext
-
- org.apache.abdera.protocol.server.context.BaseResponseContext<T>
-
- All Implemented Interfaces:
Message,Response,ResponseContext,ProtocolConstants
@Deprecated public class BaseResponseContext<T extends org.apache.abdera.model.Base> extends AbstractResponseContext
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 BaseResponseContext(T base)Deprecated.BaseResponseContext(T base, boolean chunked)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description TgetBase()Deprecated.longgetContentLength()Deprecated.Get the value of the Content-Length response headerMimeTypegetContentType()Deprecated.Return the value of the Content-Type headerbooleanhasEntity()Deprecated.True if the response contains an entityvoidwriteTo(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 class org.apache.abdera.protocol.server.context.AbstractResponseContext
addEncodedHeader, addEncodedHeaders, addHeader, addHeaders, getCacheControl, getDateHeader, getHeader, getHeaderNames, getHeaders, getHeaders, getStatus, getStatusText, isBinary, removeHeader, setAge, setAllow, setAllow, setBinary, setContentLanguage, setContentLength, setContentLocation, setContentType, setContentType, setEncodedHeader, setEncodedHeader, setEntityTag, setEntityTag, setEscapedHeader, setExpires, setHeader, setHeader, setLastModified, setLocation, setSlug, setStatus, setStatusText, setWriter
-
Methods inherited from class org.apache.abdera.protocol.util.AbstractResponse
getAge, getAllow, 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, 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, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform
-
Methods inherited from interface org.apache.abdera.protocol.Response
getAge, getAllow, getEntityTag, getExpires, getLastModified, getLocation, getNoCacheHeaders, getPrivateHeaders, getSMaxAge, getType, isMustRevalidate, isPrivate, isProxyRevalidate, isPublic
-
-
-
-
Method Detail
-
getBase
public T getBase()
Deprecated.
-
hasEntity
public boolean hasEntity()
Deprecated.Description copied from interface:ResponseContextTrue if the response contains an entity
-
writeTo
public void writeTo(Writer javaWriter) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified Writer- Throws:
IOException
-
writeTo
public void writeTo(OutputStream out) throws IOException
Deprecated.Description copied from interface:ResponseContextWrite the response out to the specified OutputStream- Throws:
IOException
-
getContentType
public MimeType getContentType()
Deprecated.Description copied from interface:MessageReturn the value of the Content-Type header- Specified by:
getContentTypein interfaceMessage- Overrides:
getContentTypein classAbstractMessage
-
getContentLength
public long getContentLength()
Deprecated.Description copied from interface:ResponseGet the value of the Content-Length response header- Specified by:
getContentLengthin interfaceResponse- Overrides:
getContentLengthin classAbstractResponse
-
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- 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- Throws:
IOException
-
-