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(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, setDoNotCache
public 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 true
public void copy(ClientResourceInfo other)
public String getCompressedPath()
null
public boolean isCompressable()
true
if this resource should be compressed,
otherwise false
public boolean supportsEL()
true
if the this resource may contain EL expressions
that should be evaluated, otherwise, return false
public void disableEL()
public long getLastModified(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 requestComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.