Class ResourceInfo
java.lang.Object
com.sun.faces.application.resource.ResourceInfo
- Direct Known Subclasses:
ClientResourceInfo
,FaceletResourceInfo
public class ResourceInfo extends Object
-
Constructor Summary
Constructors Constructor Description ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper)
ResourceInfo(LibraryInfo library, ContractInfo contract, String name, VersionInfo version)
ResourceInfo(ResourceInfo other, boolean copyLocalePrefix)
-
Method Summary
Modifier and Type Method Description void
copy(ResourceInfo other)
boolean
equals(Object obj)
String
getContract()
ResourceHelper
getHelper()
LibraryInfo
getLibraryInfo()
String
getLocalePrefix()
String
getName()
String
getPath()
VersionInfo
getVersion()
int
hashCode()
boolean
isDoNotCache()
void
setDoNotCache(boolean doNotCache)
-
Constructor Details
-
ResourceInfo
-
ResourceInfo
public ResourceInfo(ContractInfo contract, String name, VersionInfo version, ResourceHelper helper) -
ResourceInfo
-
-
Method Details
-
copy
-
equals
-
hashCode
public int hashCode() -
isDoNotCache
public boolean isDoNotCache() -
setDoNotCache
public void setDoNotCache(boolean doNotCache) -
getHelper
- Returns:
- return the
ResourceHelper
for this resource
-
getLibraryInfo
- Returns:
- the Library associated with this resource, if any.
-
getLocalePrefix
- Returns:
- the Locale prefix, if any.
-
getName
- Returns:
- return the library name.
-
getPath
- Returns:
- the full path (including the library, if any) of the resource.
-
getContract
-
getVersion
- Returns:
- return the version of the resource, or
null
if the resource isn't versioned.
-