Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core Implementation 4.2.3.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.richfaces.resource
Class CachedResourceImpl

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

All Implemented Interfaces:
  org.richfaces.resource.CacheableResource

    public class CachedResourceImpl

extends AbstractCacheableResource

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
`CachedResourceImpl()`

Method Summary
`String` | `getEntityTag(javax.faces.context.FacesContext context)`
`Date` | `getExpired(javax.faces.context.FacesContext context)`
`InputStream` | `getInputStream()`
`protected Date` | `getLastModified(javax.faces.context.FacesContext context)` TODO optimize/review?
`String` | `getRequestPath()`
`Map<String,String>` | `getResponseHeaders()`
`URL` | `getURL()`
`void` | `initialize(javax.faces.application.Resource resource)`
`boolean` | `isCacheable(javax.faces.context.FacesContext context)`
`String` | `toString()`

Methods inherited from class org.richfaces.resource.AbstractCacheableResource
`addCacheControlResponseHeaders, getExpires, getTimeToLive, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate`

Methods inherited from class org.richfaces.resource.AbstractBaseResource
`addNoCacheResponseHeaders, getClassLoader, getContentLength`

Methods inherited from class javax.faces.application.Resource
`getContentType, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### CachedResourceImpl

    public CachedResourceImpl()

Method Detail

### initialize

    public void initialize(javax.faces.application.Resource resource)
                    throws IOException

  Throws:
    `IOException`

### getInputStream

    public InputStream getInputStream()
                               throws IOException

  Specified by:
    `getInputStream` in class `javax.faces.application.Resource`
  Throws:
    `IOException`

### getRequestPath

    public String getRequestPath()

  Overrides:
    `getRequestPath` in class `AbstractBaseResource`

### getResponseHeaders

    public Map<String,String> getResponseHeaders()

  Overrides:
    `getResponseHeaders` in class `AbstractBaseResource`

### getURL

    public URL getURL()

  Overrides:
    `getURL` in class `AbstractBaseResource`

### isCacheable

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

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

### getEntityTag

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

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

### getLastModified

    protected Date getLastModified(javax.faces.context.FacesContext context)

  Description copied from class: `AbstractBaseResource`
  TODO optimize/review?

  Overrides:
    `getLastModified` in class `AbstractBaseResource`
  Returns:
    Returns the lastModified.

### getExpired

    public Date getExpired(javax.faces.context.FacesContext context)

### toString

    public String toString()

  Overrides:
    `toString` in class `javax.faces.application.Resource`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| RichFaces Core Implementation 4.2.3.Final
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.