public class CachedResourceImpl extends AbstractCacheableResource
URL_PROTOCOL
Constructor and Description |
---|
CachedResourceImpl() |
Modifier and Type | Method and Description |
---|---|
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() |
addCacheControlResponseHeaders, getExpires, getTimeToLive, isMatchesEntityTag, isMatchesEntityTag, isMatchesLastModified, isMatchesLastModified, setCacheable, userAgentNeedsUpdate
addNoCacheResponseHeaders, getClassLoader, getContentLength
public void initialize(javax.faces.application.Resource resource) throws IOException
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class javax.faces.application.Resource
IOException
public String getRequestPath()
getRequestPath
in class AbstractBaseResource
public Map<String,String> getResponseHeaders()
getResponseHeaders
in class AbstractBaseResource
public URL getURL()
getURL
in class AbstractBaseResource
public boolean isCacheable(javax.faces.context.FacesContext context)
isCacheable
in interface CacheableResource
isCacheable
in class AbstractCacheableResource
public String getEntityTag(javax.faces.context.FacesContext context)
getEntityTag
in interface CacheableResource
getEntityTag
in class AbstractCacheableResource
protected Date getLastModified(javax.faces.context.FacesContext context)
AbstractBaseResource
getLastModified
in class AbstractBaseResource
public Date getExpired(javax.faces.context.FacesContext context)
public String toString()
toString
in class javax.faces.application.Resource
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.