Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.richfaces.resource
Class AbstractCacheableResource

    java.lang.Object
      javax.faces.application.Resource
          org.richfaces.resource.AbstractBaseResource
              org.richfaces.resource.AbstractCacheableResource

All Implemented Interfaces:
  org.richfaces.resource.CacheableResource

Direct Known Subclasses:
  BaseResourceWrapper, CompiledCSSResource, Java2Dresource

    public abstract class AbstractCacheableResource

extends AbstractBaseResource
implements org.richfaces.resource.CacheableResource

Since:
  4.0
Author:
  Nick Belaevski

Field Summary

Fields inherited from class org.richfaces.resource.AbstractBaseResource
`URL_PROTOCOL`

Fields inherited from class javax.faces.application.Resource
`COMPONENT_RESOURCE_KEY`

Constructor Summary
`AbstractCacheableResource()`

Method Summary
`protected void` | `addCacheControlResponseHeaders(javax.faces.context.FacesContext facesContext, java.util.Map<java.lang.String,java.lang.String> headers)`
`java.lang.String` | `getEntityTag(javax.faces.context.FacesContext context)`
`java.util.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 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)`
`void` | `setCacheable(boolean cacheable)`
`boolean` | `userAgentNeedsUpdate(javax.faces.context.FacesContext context)`

Methods inherited from class org.richfaces.resource.AbstractBaseResource
`addNoCacheResponseHeaders, getClassLoader, getContentLength, getLastModified, getRequestPath, getResponseHeaders, getURL`

Methods inherited from class javax.faces.application.Resource
`getContentType, getInputStream, getLibraryName, getResourceName, 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

### isCacheable

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

  Specified by:
    `isCacheable` in interface `org.richfaces.resource.CacheableResource`

### 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)

### setCacheable

    public void setCacheable(boolean cacheable)

### userAgentNeedsUpdate

    public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)

  Overrides:
    `userAgentNeedsUpdate` in class `AbstractBaseResource`

### getExpires

    public java.util.Date getExpires(javax.faces.context.FacesContext context)

  IMPORTANT: this method returned TTL in RF 3.x, now it returns expiration time

  Specified by:
    `getExpires` in interface `org.richfaces.resource.CacheableResource`
  Returns:
    Returns the expired.

### getTimeToLive

    public int getTimeToLive(javax.faces.context.FacesContext context)

  Specified by:
    `getTimeToLive` in interface `org.richfaces.resource.CacheableResource`

### getEntityTag

    public java.lang.String getEntityTag(javax.faces.context.FacesContext context)

  Specified by:
    `getEntityTag` in interface `org.richfaces.resource.CacheableResource`

### addCacheControlResponseHeaders

    protected void addCacheControlResponseHeaders(javax.faces.context.FacesContext facesContext,
                                                  java.util.Map<java.lang.String,java.lang.String> headers)

  Overrides:
    `addCacheControlResponseHeaders` in class `AbstractBaseResource`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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