Package org.wicketstuff.offline.mode
Class OfflineCacheEntry
java.lang.Object
org.wicketstuff.offline.mode.OfflineCacheEntry
The cache entry is used to be add a Page, a ResourceReference, an IRequestHandler or simply a
String to the caching context.
- Author:
- Tobias Soloschenko
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCORS settings to be applied to the service worker request / against the server or the cache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the object to be cachedgetCors()Gets the cors settings of the entityGets the page parameters to be cachedGets the suffix to be placed behind the object / page parameters that are cachedsetCacheObject(Class<? extends Page> cacheObject) Sets the object to be cachedsetCacheObject(String url) Sets the object to be cachedsetCacheObject(IRequestHandler cacheObject) Sets the object to be cachedsetCacheObject(ResourceReference cacheObject) Sets the object to be cachedSets the cors settings of the entitysetPageParameters(PageParameters pageParameters) Sets the page parameter to be cachedSets the suffix to be placed behind the object / page parameters that are cached
-
Constructor Details
-
OfflineCacheEntry
public OfflineCacheEntry()
-
-
Method Details
-
getCacheObject
Gets the object to be cached- Returns:
- the object to be cached
-
setCacheObject
Sets the object to be cached- Parameters:
cacheObject- the object to be cached- Returns:
- the current instance of the entry
-
setCacheObject
Sets the object to be cached- Parameters:
cacheObject- the object to be cached- Returns:
- the current instance of the entry
-
setCacheObject
Sets the object to be cached- Parameters:
cacheObject- the object to be cached- Returns:
- the current instance of the entry
-
setCacheObject
Sets the object to be cached- Parameters:
url- the URL to be cached (e.g. /wicket/myMountedResource)- Returns:
- the current instance of the entry
-
getPageParameters
Gets the page parameters to be cached- Returns:
- the page parameters to be cached
-
setPageParameters
Sets the page parameter to be cached- Parameters:
pageParameters- the page parameters to be cached- Returns:
- the current instance of the entry
-
getSuffix
Gets the suffix to be placed behind the object / page parameters that are cached- Returns:
- the suffix
-
setSuffix
Sets the suffix to be placed behind the object / page parameters that are cached- Parameters:
suffix- to be placed behind the object / page parameters that are cached- Returns:
- the current instance of the entry
-
getCors
Gets the cors settings of the entity- Returns:
- the cors settings
-
setCors
Sets the cors settings of the entity- Parameters:
cors- the cors settings to be used- Returns:
- the current instance of the entry
-