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, userAgentNeedsUpdateaddNoCacheResponseHeaders, getClassLoader, getContentLengthpublic void initialize(javax.faces.application.Resource resource)
throws IOException
IOExceptionpublic InputStream getInputStream() throws IOException
getInputStream in class javax.faces.application.ResourceIOExceptionpublic String getRequestPath()
getRequestPath in class AbstractBaseResourcepublic Map<String,String> getResponseHeaders()
getResponseHeaders in class AbstractBaseResourcepublic URL getURL()
getURL in class AbstractBaseResourcepublic boolean isCacheable(javax.faces.context.FacesContext context)
isCacheable in interface CacheableResourceisCacheable in class AbstractCacheableResourcepublic String getEntityTag(javax.faces.context.FacesContext context)
getEntityTag in interface CacheableResourcegetEntityTag in class AbstractCacheableResourceprotected Date getLastModified(javax.faces.context.FacesContext context)
AbstractBaseResourcegetLastModified in class AbstractBaseResourcepublic Date getExpired(javax.faces.context.FacesContext context)
public String toString()
toString in class javax.faces.application.ResourceCopyright © 2014 JBoss by Red Hat. All rights reserved.