Interface IStaticCacheableResource
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable,IResource,java.io.Serializable
- All Known Implementing Classes:
ConcatBundleResource,ContextRelativeResource,CssPackageResource,JavaScriptPackageResource,PackageResource
public interface IStaticCacheableResource extends IResource
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.SerializablegetCacheKey()get unique caching key for the resource stream produced bygetResourceStream()org.apache.wicket.util.resource.IResourceStreamgetResourceStream()get static resource stream which will be unique to the related caching keygetCacheKey()booleanisCachingEnabled()controls whether caching of the resource is enabled or disabled
-
-
-
Method Detail
-
isCachingEnabled
boolean isCachingEnabled()
controls whether caching of the resource is enabled or disabled- Returns:
-
getCacheKey
java.io.Serializable getCacheKey()
get unique caching key for the resource stream produced bygetResourceStream()- Returns:
- serializable key with properly supports
#equals(Object)and#hashCode()
-
getResourceStream
org.apache.wicket.util.resource.IResourceStream getResourceStream()
get static resource stream which will be unique to the related caching keygetCacheKey()- Returns:
- stream or
nullif no stream could be found
-
-