|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.protocol.http.pagestore.AbstractPageStore
public abstract class AbstractPageStore
Abstract page store that implements the serialization logic so that the subclasses can concentrate on actual storing of serialized page instances.
Nested Class Summary | |
---|---|
protected static class |
AbstractPageStore.SerializedPage
Immutable class that contains a serialized page instance. |
Constructor Summary | |
---|---|
AbstractPageStore()
|
Method Summary | |
---|---|
protected Page |
deserializePage(byte[] data,
int versionNumber)
Creates a page instance from given byte array. |
protected java.util.List |
serializePage(Page page)
Creates a list of AbstractPageStore.SerializedPage instances obtained from serializing the provided
page. |
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.protocol.http.SecondLevelCacheSessionStore.IPageStore |
---|
containsPage, destroy, getPage, pageAccessed, removePage, storePage, unbind |
Constructor Detail |
---|
public AbstractPageStore()
Method Detail |
---|
protected java.util.List serializePage(Page page)
AbstractPageStore.SerializedPage
instances obtained from serializing the provided
page.
One page instance can be serialized to multiple AbstractPageStore.SerializedPage
instances, because
each referenced page is serialized separately and should also be separately saved On
deserialization wicket detects a page instance placeholder and loads the appropriate page.
As an example, when there is PageA that has a member variable of type PageB, serializing
instanceof PageA will result in a list of two AbstractPageStore.SerializedPage
instances, one for PageA
and another one for the referenced PageB.
page
- page to be serialized
AbstractPageStore.SerializedPage
sprotected Page deserializePage(byte[] data, int versionNumber)
data
- Serialized page instance data as byte arrayversionNumber
- Requested page version or -1 if original version (the one serialized) should be
kept
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |