Package org.apache.abdera.protocol.util
Class AbstractResponse
- java.lang.Object
-
- org.apache.abdera.protocol.util.AbstractMessage
-
- org.apache.abdera.protocol.util.AbstractResponse
-
- All Implemented Interfaces:
Message,Response,ProtocolConstants
- Direct Known Subclasses:
AbstractClientResponse,AbstractResponseContext
@Deprecated public abstract class AbstractResponse extends AbstractMessage implements Response
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 AbstractResponse()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetAge()Deprecated.Get the age of this response as specified by the serverStringgetAllow()Deprecated.Get the value of the Allow response headerlonggetContentLength()Deprecated.Get the value of the Content-Length response headerorg.apache.abdera.util.EntityTaggetEntityTag()Deprecated.Get the Entity Tag returned by the serverDategetExpires()Deprecated.Get the date/time this response expiresDategetLastModified()Deprecated.Get the value of the Last-Modified response headerorg.apache.abdera.i18n.iri.IRIgetLocation()Deprecated.Get the value of the Location response headerString[]getNoCacheHeaders()Deprecated.String[]getPrivateHeaders()Deprecated.longgetSMaxAge()Deprecated.Response.ResponseTypegetType()Deprecated.Get the response type classificationbooleanisMustRevalidate()Deprecated.True if the Cache-Control header specifies the must-revalidate directivebooleanisPrivate()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 directiveAbstractResponsesetMaxAge(long max_age)Deprecated.AbstractResponsesetMustRevalidate(boolean val)Deprecated.AbstractResponsesetNoCache(boolean val)Deprecated.AbstractResponsesetNoCacheHeaders(String... headers)Deprecated.AbstractResponsesetNoStore(boolean val)Deprecated.AbstractResponsesetNoTransform(boolean val)Deprecated.AbstractResponsesetPrivate(boolean val)Deprecated.AbstractResponsesetPrivateHeaders(String... headers)Deprecated.AbstractResponsesetProxyRevalidate(boolean val)Deprecated.AbstractResponsesetPublic(boolean val)Deprecated.-
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.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
getStatus, getStatusText
-
-
-
-
Method Detail
-
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
-
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
-
setMaxAge
public AbstractResponse setMaxAge(long max_age)
Deprecated.
-
setMustRevalidate
public AbstractResponse setMustRevalidate(boolean val)
Deprecated.
-
setProxyRevalidate
public AbstractResponse setProxyRevalidate(boolean val)
Deprecated.
-
setNoCache
public AbstractResponse setNoCache(boolean val)
Deprecated.
-
setNoStore
public AbstractResponse setNoStore(boolean val)
Deprecated.
-
setNoTransform
public AbstractResponse setNoTransform(boolean val)
Deprecated.
-
setPublic
public AbstractResponse setPublic(boolean val)
Deprecated.
-
setPrivate
public AbstractResponse setPrivate(boolean val)
Deprecated.
-
setPrivateHeaders
public AbstractResponse setPrivateHeaders(String... headers)
Deprecated.
-
setNoCacheHeaders
public AbstractResponse setNoCacheHeaders(String... headers)
Deprecated.
-
-