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 isMatchesEntityTag(javax.faces.context.FacesContext context)
          Deprecated. 
protected  boolean isMatchesEntityTag(javax.faces.context.FacesContext context, java.lang.String matchHeaderValue)
           
protected  java.lang.Boolean isMatchesLastModified(javax.faces.context.FacesContext context)
          Deprecated. 
protected  boolean isMatchesLastModified(javax.faces.context.FacesContext context, java.lang.String modifiedCondition)
           
 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)

isMatchesLastModified

@Deprecated
protected java.lang.Boolean isMatchesLastModified(javax.faces.context.FacesContext context)
Deprecated. 


isMatchesLastModified

protected boolean isMatchesLastModified(javax.faces.context.FacesContext context,
                                        java.lang.String modifiedCondition)

isMatchesEntityTag

@Deprecated
protected java.lang.Boolean isMatchesEntityTag(javax.faces.context.FacesContext context)
Deprecated. 


isMatchesEntityTag

protected boolean isMatchesEntityTag(javax.faces.context.FacesContext context,
                                     java.lang.String matchHeaderValue)

userAgentNeedsUpdate

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


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.