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
Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
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 |
CachedResourceImpl
public CachedResourceImpl()
initialize
public void initialize(javax.faces.application.Resource resource)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
- Specified by:
getInputStream
in class javax.faces.application.Resource
- Throws:
java.io.IOException
getRequestPath
public java.lang.String getRequestPath()
- Overrides:
getRequestPath
in class AbstractBaseResource
getResponseHeaders
public java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
- Overrides:
getResponseHeaders
in class AbstractBaseResource
getURL
public java.net.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 java.lang.String getEntityTag(javax.faces.context.FacesContext context)
- Specified by:
getEntityTag
in interface org.richfaces.resource.CacheableResource
- Overrides:
getEntityTag
in class AbstractCacheableResource
getLastModified
protected java.util.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 java.util.Date getExpired(javax.faces.context.FacesContext context)
toString
public java.lang.String toString()
- Overrides:
toString
in class javax.faces.application.Resource
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.