public abstract class DynamicResource
extends javax.faces.application.Resource
Resource implementation represents a cacheable dynamic resource which doesn't necessarily exist as a
regular classpath resource.| Constructor and Description |
|---|
DynamicResource(String resourceName,
String libraryName,
String contentType)
Constructs a new combined resource based on the given resource name.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastModified()
Returns the "last modified" timestamp of this resource.
|
String |
getRequestPath() |
Map<String,String> |
getResponseHeaders() |
URL |
getURL() |
void |
setLastModified(long lastModified)
Sets the "last modified" timestamp of this resource.
|
boolean |
userAgentNeedsUpdate(javax.faces.context.FacesContext context) |
public DynamicResource(String resourceName, String libraryName, String contentType)
DefaultResourceHandler.createResource(String, String).name - The resource name of the combined resource.public String getRequestPath()
getRequestPath in class javax.faces.application.Resourcepublic URL getURL()
getURL in class javax.faces.application.Resourcepublic Map<String,String> getResponseHeaders()
getResponseHeaders in class javax.faces.application.Resourcepublic long getLastModified()
public void setLastModified(long lastModified)
lastModified - The "last modified" timestamp of this resource.public boolean userAgentNeedsUpdate(javax.faces.context.FacesContext context)
userAgentNeedsUpdate in class javax.faces.application.ResourceCopyright © 2012–2014 OmniFaces. All rights reserved.