public class ClientResourceInfo extends ResourceInfo
ClientResourceInfo is a simple wrapper class for information pertinent to building a complete resource
path using a Library.
| Constructor and Description |
|---|
ClientResourceInfo(LibraryInfo library,
ContractInfo contract,
String name,
VersionInfo version,
boolean compressible,
boolean supportsEL,
boolean isDevStage,
boolean cacheTimestamp)
Constructs a new
ClientResourceInfo using the specified details. |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(ClientResourceInfo other) |
void |
disableEL()
Disables EL evaluation for this resource.
|
String |
getCompressedPath() |
long |
getLastModified(jakarta.faces.context.FacesContext ctx)
Returns the time this resource was last modified.
|
boolean |
isCompressable() |
boolean |
supportsEL() |
String |
toString() |
copy, equals, getContract, getHelper, getLibraryInfo, getLocalePrefix, getName, getPath, getVersion, hashCode, isDoNotCache, setDoNotCachepublic ClientResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version, boolean compressible, boolean supportsEL, boolean isDevStage, boolean cacheTimestamp)
ClientResourceInfo using the specified details. The ResourceHelper of the
resource will be the same as the ResourceHelper of the LibraryInfo.library - the library containing this resourcename - the resource nameversion - the version of this resource (if any)compressible - if this resource should be compressedsupportsEL - true if this resource may contain EL expressionsisDevStage - true if this context is development stagecacheTimestamp - true if the modification time of the resource should be cached. The value of this
parameter will be ignored when isDevStage is truepublic void copy(ClientResourceInfo other)
public String getCompressedPath()
nullpublic boolean isCompressable()
true if this resource should be compressed, otherwise falsepublic boolean supportsEL()
true if the this resource may contain EL expressions that should be evaluated, otherwise, return
falsepublic void disableEL()
public long getLastModified(jakarta.faces.context.FacesContext ctx)
WebConfiguration.BooleanWebContextInitParameter.CacheResourceModificationTimestamp is
true, the value will be cached for the lifetime if this ClientResourceInfo instance.ctx - the FacesContext for the current requestCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.