public abstract class BaseResourceWrapper<T> extends AbstractCacheableResource implements org.richfaces.resource.VersionedResource, javax.faces.component.StateHolder, javax.faces.FacesWrapper<T>
URL_PROTOCOL| Constructor and Description |
|---|
BaseResourceWrapper(T resourceObject,
boolean cacheable,
boolean versioned) |
| Modifier and Type | Method and Description |
|---|---|
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
|
Map<String,String> |
getResponseHeaders() |
int |
getTimeToLive(javax.faces.context.FacesContext context) |
String |
getVersion() |
T |
getWrapped() |
protected abstract Map<String,String> |
getWrappedResourceResponseHeaders() |
boolean |
isCacheable(javax.faces.context.FacesContext context) |
boolean |
isTransient() |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setTransient(boolean newTransientValue) |
addCacheControlResponseHeaders, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdateaddNoCacheResponseHeaders, getClassLoader, getContentLength, getLastModified, getRequestPath, getURLpublic BaseResourceWrapper(T resourceObject, boolean cacheable, boolean versioned)
protected abstract Map<String,String> getWrappedResourceResponseHeaders()
public Map<String,String> getResponseHeaders()
getResponseHeaders in class AbstractBaseResourcepublic String getVersion()
getVersion in interface org.richfaces.resource.VersionedResourcepublic boolean isCacheable(javax.faces.context.FacesContext context)
isCacheable in interface org.richfaces.resource.CacheableResourceisCacheable in class AbstractCacheableResourcepublic Date getExpires(javax.faces.context.FacesContext context)
AbstractCacheableResourcegetExpires in interface org.richfaces.resource.CacheableResourcegetExpires in class AbstractCacheableResourcepublic String getEntityTag(javax.faces.context.FacesContext context)
getEntityTag in interface org.richfaces.resource.CacheableResourcegetEntityTag in class AbstractCacheableResourcepublic int getTimeToLive(javax.faces.context.FacesContext context)
getTimeToLive in interface org.richfaces.resource.CacheableResourcegetTimeToLive in class AbstractCacheableResourcepublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean newTransientValue)
setTransient in interface javax.faces.component.StateHolderpublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext context,
Object state)
restoreState in interface javax.faces.component.StateHolderCopyright © 2012 JBoss by Red Hat. All Rights Reserved.