public abstract class AbstractResponse extends AbstractMessage implements Response
Response.ResponseTypeNOCACHE, NOSTORE, NOTRANSFORM, ONLYIFCACHED, PRIVATE, PROXYREVALIDATE, PUBLIC, REVALIDATE| Constructor and Description |
|---|
AbstractResponse() |
| Modifier and Type | Method and Description |
|---|---|
long |
getAge()
Get the age of this response as specified by the server
|
java.lang.String |
getAllow()
Get the value of the Allow response header
|
long |
getContentLength()
Get the value of the Content-Length response header
|
EntityTag |
getEntityTag()
Get the Entity Tag returned by the server
|
java.util.Date |
getExpires()
Get the date/time this response expires
|
java.util.Date |
getLastModified()
Get the value of the Last-Modified response header
|
IRI |
getLocation()
Get the value of the Location response header
|
java.lang.String[] |
getNoCacheHeaders() |
java.lang.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(java.lang.String... headers) |
AbstractResponse |
setNoStore(boolean val) |
AbstractResponse |
setNoTransform(boolean val) |
AbstractResponse |
setPrivate(boolean val) |
AbstractResponse |
setPrivateHeaders(java.lang.String... headers) |
AbstractResponse |
setProxyRevalidate(boolean val) |
AbstractResponse |
setPublic(boolean val) |
getCacheControl, getContentLanguage, getContentLocation, getContentType, getDecodedHeader, getDecodedHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStatus, getStatusTextgetCacheControl, getContentLanguage, getContentLocation, getContentType, getDateHeader, getDecodedHeader, getDecodedHeaders, getHeader, getHeaderNames, getHeaders, getMaxAge, getSlug, isNoCache, isNoStore, isNoTransformpublic long getAge()
Responsepublic java.lang.String getAllow()
Responsepublic long getContentLength()
ResponsegetContentLength in interface Responsepublic EntityTag getEntityTag()
ResponsegetEntityTag in interface Responsepublic java.util.Date getExpires()
ResponsegetExpires in interface Responsepublic java.util.Date getLastModified()
ResponsegetLastModified in interface Responsepublic IRI getLocation()
ResponsegetLocation in interface Responsepublic java.lang.String[] getNoCacheHeaders()
getNoCacheHeaders in interface Responsepublic java.lang.String[] getPrivateHeaders()
getPrivateHeaders in interface Responsepublic long getSMaxAge()
getSMaxAge in interface Responsepublic Response.ResponseType getType()
Responsepublic boolean isMustRevalidate()
ResponseisMustRevalidate in interface Responsepublic boolean isPrivate()
Responsepublic boolean isProxyRevalidate()
ResponseisProxyRevalidate in interface Responsepublic boolean isPublic()
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(java.lang.String... headers)
public AbstractResponse setNoCacheHeaders(java.lang.String... headers)
Copyright © 2010 - 2019 Adobe. All Rights Reserved