Interface IStaticCacheableResource
- All Superinterfaces:
IClusterable
,IResource
,Serializable
- All Known Implementing Classes:
ConcatBundleResource
,ContextRelativeResource
,CssPackageResource
,JavaScriptPackageResource
,PackageResource
static resource which does not change for the lifetime of the application and should be
considered a candidate for long-term caching.
- Since:
- 1.5
- Author:
- Peter Ertl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource
IResource.Attributes
-
Method Summary
Modifier and TypeMethodDescriptionget unique caching key for the resource stream produced bygetResourceStream()
get static resource stream which will be unique to the related caching keygetCacheKey()
boolean
controls whether caching of the resource is enabled or disabled
-
Method Details
-
isCachingEnabled
boolean isCachingEnabled()controls whether caching of the resource is enabled or disabled- Returns:
true
if caching is enabled
-
getCacheKey
get unique caching key for the resource stream produced bygetResourceStream()
- Returns:
- serializable key which properly supports
Object.equals(Object)
andObject.hashCode()
-
getResourceStream
get static resource stream which will be unique to the related caching keygetCacheKey()
- Returns:
- stream or
null
if no stream could be found
-