org.richfaces.resource
Class AbstractBaseResource
java.lang.Object
javax.faces.application.Resource
org.richfaces.resource.AbstractCacheableResource
org.richfaces.resource.AbstractBaseResource
- All Implemented Interfaces:
- org.richfaces.resource.VersionedResource
- Direct Known Subclasses:
- CompiledCSSResource, Java2Dresource
public abstract class AbstractBaseResource
- extends AbstractCacheableResource
- implements org.richfaces.resource.VersionedResource
- Since:
- 4.0
- Author:
- Nick Belaevski
Fields inherited from class javax.faces.application.Resource |
COMPONENT_RESOURCE_KEY |
Method Summary |
protected java.lang.ClassLoader |
getClassLoader()
|
protected int |
getContentLength(javax.faces.context.FacesContext context)
|
protected java.lang.String |
getEntityTag(javax.faces.context.FacesContext context)
|
protected java.util.Date |
getExpires(javax.faces.context.FacesContext context)
IMPORTANT: this method returned TTL in RF 3.x, now it returns expiration time |
protected java.util.Date |
getLastModified(javax.faces.context.FacesContext context)
TODO optimize/review? |
java.lang.String |
getRequestPath()
|
java.util.Map<java.lang.String,java.lang.String> |
getResponseHeaders()
|
protected int |
getTimeToLive(javax.faces.context.FacesContext context)
|
java.net.URL |
getURL()
|
java.lang.String |
getVersion()
|
boolean |
isCacheable(javax.faces.context.FacesContext context)
|
protected void |
setCacheable(boolean cacheable)
|
protected void |
setVersion(java.lang.String version)
|
Methods inherited from class javax.faces.application.Resource |
getContentType, getInputStream, getLibraryName, getResourceName, setContentType, setLibraryName, setResourceName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
URL_PROTOCOL
public static final java.lang.String URL_PROTOCOL
- See Also:
- Constant Field Values
AbstractBaseResource
protected AbstractBaseResource()
getContentLength
protected int getContentLength(javax.faces.context.FacesContext context)
getExpires
protected java.util.Date getExpires(javax.faces.context.FacesContext context)
- IMPORTANT: this method returned TTL in RF 3.x, now it returns expiration time
- Returns:
- Returns the expired.
getTimeToLive
protected int getTimeToLive(javax.faces.context.FacesContext context)
getLastModified
protected java.util.Date getLastModified(javax.faces.context.FacesContext context)
- TODO optimize/review?
- Specified by:
getLastModified
in class AbstractCacheableResource
- Returns:
- Returns the lastModified.
getClassLoader
protected java.lang.ClassLoader getClassLoader()
isCacheable
public boolean isCacheable(javax.faces.context.FacesContext context)
- Specified by:
isCacheable
in class AbstractCacheableResource
- Returns:
- Returns the cacheable.
setCacheable
protected void setCacheable(boolean cacheable)
getEntityTag
protected java.lang.String getEntityTag(javax.faces.context.FacesContext context)
- Specified by:
getEntityTag
in class AbstractCacheableResource
getRequestPath
public java.lang.String getRequestPath()
- Specified by:
getRequestPath
in class javax.faces.application.Resource
getVersion
public java.lang.String getVersion()
- Specified by:
getVersion
in interface org.richfaces.resource.VersionedResource
setVersion
protected void setVersion(java.lang.String version)
getResponseHeaders
public java.util.Map<java.lang.String,java.lang.String> getResponseHeaders()
- Specified by:
getResponseHeaders
in class javax.faces.application.Resource
getURL
public java.net.URL getURL()
- Specified by:
getURL
in class javax.faces.application.Resource
Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.