org.richfaces.resource
Class AbstractCacheableResource

java.lang.Object
  extended by javax.faces.application.Resource
      extended by org.richfaces.resource.AbstractCacheableResource
Direct Known Subclasses:
AbstractBaseResource

public abstract class AbstractCacheableResource
extends javax.faces.application.Resource

Since:
4.0
Author:
Nick Belaevski

Field Summary
 
Fields inherited from class javax.faces.application.Resource
COMPONENT_RESOURCE_KEY
 
Constructor Summary
AbstractCacheableResource()
           
 
Method Summary
protected abstract  java.lang.String getEntityTag(javax.faces.context.FacesContext context)
           
protected abstract  java.util.Date getLastModified(javax.faces.context.FacesContext context)
           
abstract  boolean isCacheable(javax.faces.context.FacesContext context)
           
protected  java.lang.Boolean matchesEntityTag(javax.faces.context.FacesContext context)
           
protected  java.lang.Boolean matchesLastModified(javax.faces.context.FacesContext context)
           
 boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
           
 
Methods inherited from class javax.faces.application.Resource
getContentType, getInputStream, getLibraryName, getRequestPath, getResourceName, getResponseHeaders, getURL, setContentType, setLibraryName, setResourceName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCacheableResource

public AbstractCacheableResource()
Method Detail

getLastModified

protected abstract java.util.Date getLastModified(javax.faces.context.FacesContext context)

isCacheable

public abstract boolean isCacheable(javax.faces.context.FacesContext context)

getEntityTag

protected abstract java.lang.String getEntityTag(javax.faces.context.FacesContext context)

matchesLastModified

protected java.lang.Boolean matchesLastModified(javax.faces.context.FacesContext context)

matchesEntityTag

protected java.lang.Boolean matchesEntityTag(javax.faces.context.FacesContext context)

userAgentNeedsUpdate

public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
Specified by:
userAgentNeedsUpdate in class javax.faces.application.Resource


Copyright © 2009. All Rights Reserved.