org.apache.wicket
Interface Page.IPageSerializer

Enclosing interface:
Page

public static interface Page.IPageSerializer

You can set implementation of the interface in the Page.serializer then that implementation will handle the serialization of this page. The serializePage method is called from the writeObject method then the implementation override the default serialization.

Author:
jcompagner

Method Summary
 Page deserializePage(int id, java.lang.String name, Page page, java.io.ObjectInputStream stream)
          Called when page is being deserialized
 void serializePage(Page page, java.io.ObjectOutputStream stream)
          Called from the Page#writeObject(java.io.ObjectOutputStream) method.
 

Method Detail

deserializePage

public Page deserializePage(int id,
                            java.lang.String name,
                            Page page,
                            java.io.ObjectInputStream stream)
                     throws java.io.IOException,
                            java.lang.ClassNotFoundException
Called when page is being deserialized

Parameters:
id - TODO
name - TODO
page -
stream -
Returns:
New instance to replace page instance being deserialized
Throws:
java.io.IOException
java.lang.ClassNotFoundException

serializePage

public void serializePage(Page page,
                          java.io.ObjectOutputStream stream)
                   throws java.io.IOException
Called from the Page#writeObject(java.io.ObjectOutputStream) method.

Parameters:
page - The page that must be serialized.
stream - ObjectOutputStream
Throws:
java.io.IOException


Copyright © 2004-2008 Apache Software Foundation. All Rights Reserved.