|
||||||||||
| 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 Responsepublic String getAllow()
Response
getAllow in interface Responsepublic long getContentLength()
Response
getContentLength in interface Responsepublic org.apache.abdera.util.EntityTag getEntityTag()
Response
getEntityTag in interface Responsepublic Date getExpires()
Response
getExpires in interface Responsepublic Date getLastModified()
Response
getLastModified in interface Responsepublic IRI getLocation()
Response
getLocation in interface Responsepublic String[] getNoCacheHeaders()
getNoCacheHeaders in interface Responsepublic String[] getPrivateHeaders()
getPrivateHeaders in interface Responsepublic long getSMaxAge()
getSMaxAge in interface Responsepublic Response.ResponseType getType()
Response
getType in interface Responsepublic boolean isMustRevalidate()
Response
isMustRevalidate in interface Responsepublic boolean isPrivate()
Response
isPrivate in interface Responsepublic boolean isProxyRevalidate()
Response
isProxyRevalidate in interface Responsepublic boolean isPublic()
Response
isPublic in interface Responsepublic 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 | |||||||||