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 |
CachedResourceImpl
public CachedResourceImpl()
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.