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:
- Java2Dresource, TestResource
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 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 |
abstract java.io.InputStream |
getInputStream()
|
protected java.util.Date |
getLastModified(javax.faces.context.FacesContext context)
|
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, 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
public AbstractBaseResource()
getContentLength
protected int getContentLength(javax.faces.context.FacesContext context)
- Parameters:
resourceContext - current ResourceContext
- Returns:
- Returns the contentLength.
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)
- Specified by:
getLastModified in class AbstractCacheableResource
- Parameters:
resourceContext - current ResourceContext
- Returns:
- Returns the lastModified.
isCacheable
public boolean isCacheable(javax.faces.context.FacesContext context)
- Specified by:
isCacheable in class AbstractCacheableResource
- Parameters:
resourceContext - current ResourceContext
- 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
getInputStream
public abstract java.io.InputStream getInputStream()
- Specified by:
getInputStream in class javax.faces.application.Resource
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 © 2009. All Rights Reserved.