public abstract class AbstractCacheableResource extends AbstractBaseResource implements CacheableResource
URL_PROTOCOL
Constructor and Description |
---|
AbstractCacheableResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCacheControlResponseHeaders(javax.faces.context.FacesContext facesContext,
Map<String,String> headers) |
String |
getEntityTag(javax.faces.context.FacesContext context) |
Date |
getExpires(javax.faces.context.FacesContext context)
IMPORTANT: this method returned TTL in RF 3.x, now it returns expiration time
|
int |
getTimeToLive(javax.faces.context.FacesContext context) |
boolean |
isCacheable(javax.faces.context.FacesContext context) |
protected Boolean |
isMatchesEntityTag(javax.faces.context.FacesContext context)
Deprecated.
|
protected boolean |
isMatchesEntityTag(javax.faces.context.FacesContext context,
String matchHeaderValue) |
protected Boolean |
isMatchesLastModified(javax.faces.context.FacesContext context)
Deprecated.
|
protected boolean |
isMatchesLastModified(javax.faces.context.FacesContext context,
String modifiedCondition) |
void |
setCacheable(boolean cacheable) |
boolean |
userAgentNeedsUpdate(javax.faces.context.FacesContext context) |
addNoCacheResponseHeaders, getClassLoader, getContentLength, getLastModified, getRequestPath, getResponseHeaders, getURL
public boolean isCacheable(javax.faces.context.FacesContext context)
isCacheable
in interface CacheableResource
@Deprecated protected Boolean isMatchesLastModified(javax.faces.context.FacesContext context)
protected boolean isMatchesLastModified(javax.faces.context.FacesContext context, String modifiedCondition)
@Deprecated protected Boolean isMatchesEntityTag(javax.faces.context.FacesContext context)
protected boolean isMatchesEntityTag(javax.faces.context.FacesContext context, String matchHeaderValue)
public void setCacheable(boolean cacheable)
public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
userAgentNeedsUpdate
in class AbstractBaseResource
public Date getExpires(javax.faces.context.FacesContext context)
getExpires
in interface CacheableResource
public int getTimeToLive(javax.faces.context.FacesContext context)
getTimeToLive
in interface CacheableResource
public String getEntityTag(javax.faces.context.FacesContext context)
getEntityTag
in interface CacheableResource
protected void addCacheControlResponseHeaders(javax.faces.context.FacesContext facesContext, Map<String,String> headers)
addCacheControlResponseHeaders
in class AbstractBaseResource
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.