java.lang.Object
com.sun.faces.application.resource.ResourceInfo
com.sun.faces.application.resource.ClientResourceInfo
ClientResourceInfo
is a simple wrapper class for information pertinent to building a complete resource
path using a Library.-
Constructor Summary
ConstructorDescriptionClientResourceInfo
(LibraryInfo library, ContractInfo contract, String name, VersionInfo version, boolean compressible, boolean supportsEL, boolean isDevStage, boolean cacheTimestamp) Constructs a newClientResourceInfo
using the specified details. -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(ClientResourceInfo other) void
Disables EL evaluation for this resource.long
Returns the time this resource was last modified.boolean
boolean
toString()
Methods inherited from class com.sun.faces.application.resource.ResourceInfo
copy, equals, getContract, getHelper, getLibraryInfo, getLocalePrefix, getName, getPath, getVersion, hashCode, isDoNotCache, setDoNotCache
-
Constructor Details
-
ClientResourceInfo
public ClientResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version, boolean compressible, boolean supportsEL, boolean isDevStage, boolean cacheTimestamp) Constructs a newClientResourceInfo
using the specified details. TheResourceHelper
of the resource will be the same as theResourceHelper
of theLibraryInfo
.- Parameters:
library
- the library containing this resourcecontract
- the contract infoname
- 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 whenisDevStage
istrue
-
-
Method Details
-
copy
-
getCompressedPath
- Returns:
- the path to which the compressed bits for this resource reside. If this resource isn't compressible and this
method is called, it will return
null
-
isCompressable
public boolean isCompressable()- Returns:
true
if this resource should be compressed, otherwisefalse
-
supportsEL
public boolean supportsEL()- Returns:
true
if the this resource may contain EL expressions that should be evaluated, otherwise, returnfalse
-
disableEL
public void disableEL()Disables EL evaluation for this resource. -
getLastModified
Returns the time this resource was last modified. IfWebConfiguration.BooleanWebContextInitParameter.CacheResourceModificationTimestamp
is true, the value will be cached for the lifetime if thisClientResourceInfo
instance.- Parameters:
ctx
- theFacesContext
for the current request- Returns:
- the time this resource was last modified (number of milliseconds since January 1, 1970 GMT).
-
toString
-