Package org.apache.wicket.pageStore
Class RequestPageStore
java.lang.Object
org.apache.wicket.pageStore.DelegatingPageStore
org.apache.wicket.pageStore.RequestPageStore
- All Implemented Interfaces:
IPageStore
Buffers storage of added pages until the end of the request, when they are delegated to the next store in
the identical order they where added.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPage
(IPageContext context, IManageablePage page) Stores the page-void
detach
(IPageContext context) Detach from the current context.void
end
(IPageContext context) End the current context.getPage
(IPageContext context, int id) Restores a page from storage.void
removeAllPages
(IPageContext context) All pages should be removed from storage for the given context.void
removePage
(IPageContext context, IManageablePage page) Removes a page from storage.void
revertPage
(IPageContext context, IManageablePage page) Revert adding a page - optional operation.Methods inherited from class org.apache.wicket.pageStore.DelegatingPageStore
destroy, getDelegate, supportsVersioning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.wicket.pageStore.IPageStore
canBeAsynchronous
-
Constructor Details
-
RequestPageStore
-
-
Method Details
-
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.
-
removePage
Description copied from interface:IPageStore
Removes a page from storage.- Specified by:
removePage
in interfaceIPageStore
- Overrides:
removePage
in classDelegatingPageStore
- Parameters:
context
- the context of the pagepage
- the page.
-
removeAllPages
Description copied from interface:IPageStore
All pages should be removed from storage for the given context.- Specified by:
removeAllPages
in interfaceIPageStore
- Overrides:
removeAllPages
in classDelegatingPageStore
- Parameters:
context
- the context of the pages
-
revertPage
Description copied from interface:IPageStore
Revert adding a page - optional operation.- Specified by:
revertPage
in interfaceIPageStore
- Overrides:
revertPage
in classDelegatingPageStore
page
- the page that should be reverted
-
end
Description copied from interface:IPageStore
End the current context.- Specified by:
end
in interfaceIPageStore
- Overrides:
end
in classDelegatingPageStore
-
detach
Description copied from interface:IPageStore
Detach from the current context.- Specified by:
detach
in interfaceIPageStore
- Overrides:
detach
in classDelegatingPageStore
- Parameters:
context
- the context of the pages
-