java.lang.Object
org.apache.wicket.pageStore.DelegatingPageStore
org.apache.wicket.pageStore.SerializingPageStore
- All Implemented Interfaces:
IPageStore
A store that serializes all pages before delegating and vice versa.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPage
(IPageContext context, IManageablePage page) Stores the page-boolean
canBeAsynchronous
(IPageContext context) Supports asynchronous add if the delegate supports it.getPage
(IPageContext context, int id) Restores a page from storage.boolean
Versioning is supported, since pages are always serialized.Methods inherited from class org.apache.wicket.pageStore.DelegatingPageStore
destroy, detach, end, getDelegate, removeAllPages, removePage, revertPage
-
Constructor Details
-
SerializingPageStore
- Parameters:
delegate
- store to delegate toserializer
- serializer to use if session gets persisted
-
-
Method Details
-
supportsVersioning
Versioning is supported, since pages are always serialized.- Specified by:
supportsVersioning
in interfaceIPageStore
- Overrides:
supportsVersioning
in classDelegatingPageStore
-
canBeAsynchronous
Supports asynchronous add if the delegate supports it.- Returns:
- whether
IPageStore.addPage(IPageContext, IManageablePage)
may be called asynchronously, default isfalse
-
getPage
Description copied from interface:IPageStore
Restores a page from storage.- Specified by:
getPage
in interfaceIPageStore
- Overrides:
getPage
in classDelegatingPageStore
- Parameters:
context
- the context of the pageid
- the id of the page.- Returns:
- the page
-
addPage
Description copied from interface:IPageStore
Stores the page-- Specified by:
addPage
in interfaceIPageStore
- Overrides:
addPage
in classDelegatingPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-