|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.protocol.util.AbstractMessage
org.apache.abdera.protocol.util.AbstractResponse
public abstract class AbstractResponse
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.Response |
---|
Response.ResponseType |
Field Summary | |
---|---|
protected String[] |
nocache_headers
|
protected String[] |
private_headers
|
protected long |
smax_age
|
Fields inherited from class org.apache.abdera.protocol.util.AbstractMessage |
---|
flags, max_age |
Fields inherited from interface org.apache.abdera.protocol.util.ProtocolConstants |
---|
NOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE |
Constructor Summary | |
---|---|
AbstractResponse()
|
Method Summary | |
---|---|
long |
getAge()
Get the age of this response as specified by the server |
String |
getAllow()
Get the value of the Allow response header |
long |
getContentLength()
Get the value of the Content-Length response header |
org.apache.abdera.util.EntityTag |
getEntityTag()
Get the Entity Tag returned by the server |
Date |
getExpires()
Get the date/time this response expires |
Date |
getLastModified()
Get the value of the Last-Modified response header |
IRI |
getLocation()
Get the value of the Location response header |
String[] |
getNoCacheHeaders()
|
String[] |
getPrivateHeaders()
|
long |
getSMaxAge()
|
Response.ResponseType |
getType()
Get the response type classification |
boolean |
isMustRevalidate()
True if the Cache-Control header specifies the must-revalidate directive |
boolean |
isPrivate()
True if the Cache-Control header specifies the private directive |
boolean |
isProxyRevalidate()
True if the Cache-Control header specifies the proxy-revalidate directive |
boolean |
isPublic()
True if the Cache-Control header specified the public directive |
AbstractResponse |
setMaxAge(long max_age)
|
AbstractResponse |
setMustRevalidate(boolean val)
|
AbstractResponse |
setNoCache(boolean val)
|
AbstractResponse |
setNoCacheHeaders(String... headers)
|
AbstractResponse |
setNoStore(boolean val)
|
AbstractResponse |
setNoTransform(boolean val)
|
AbstractResponse |
setPrivate(boolean val)
|
AbstractResponse |
setPrivateHeaders(String... headers)
|
AbstractResponse |
setProxyRevalidate(boolean val)
|
AbstractResponse |
setPublic(boolean val)
|
Methods inherited from class org.apache.abdera.protocol.util.AbstractMessage |
---|
check, getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform, toggle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.abdera.protocol.Response |
---|
getStatus, getStatusText |
Methods inherited from interface org.apache.abdera.protocol.Message |
---|
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransform |
Field Detail |
---|
protected String[] nocache_headers
protected String[] private_headers
protected long smax_age
Constructor Detail |
---|
public AbstractResponse()
Method Detail |
---|
public long getAge()
Response
getAge
in interface Response
public String getAllow()
Response
getAllow
in interface Response
public long getContentLength()
Response
getContentLength
in interface Response
public org.apache.abdera.util.EntityTag getEntityTag()
Response
getEntityTag
in interface Response
public Date getExpires()
Response
getExpires
in interface Response
public Date getLastModified()
Response
getLastModified
in interface Response
public IRI getLocation()
Response
getLocation
in interface Response
public String[] getNoCacheHeaders()
getNoCacheHeaders
in interface Response
public String[] getPrivateHeaders()
getPrivateHeaders
in interface Response
public long getSMaxAge()
getSMaxAge
in interface Response
public Response.ResponseType getType()
Response
getType
in interface Response
public boolean isMustRevalidate()
Response
isMustRevalidate
in interface Response
public boolean isPrivate()
Response
isPrivate
in interface Response
public boolean isProxyRevalidate()
Response
isProxyRevalidate
in interface Response
public boolean isPublic()
Response
isPublic
in interface Response
public AbstractResponse setMaxAge(long max_age)
public AbstractResponse setMustRevalidate(boolean val)
public AbstractResponse setProxyRevalidate(boolean val)
public AbstractResponse setNoCache(boolean val)
public AbstractResponse setNoStore(boolean val)
public AbstractResponse setNoTransform(boolean val)
public AbstractResponse setPublic(boolean val)
public AbstractResponse setPrivate(boolean val)
public AbstractResponse setPrivateHeaders(String... headers)
public AbstractResponse setNoCacheHeaders(String... headers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |