org.apache.wicket.pageStore
Class DiskDataStore.SessionEntry

java.lang.Object
  extended by org.apache.wicket.pageStore.DiskDataStore.SessionEntry
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
DiskDataStore

protected static class DiskDataStore.SessionEntry
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
protected DiskDataStore.SessionEntry(DiskDataStore diskDataStore, java.lang.String sessionId)
           
 
Method Summary
 PageWindowManager getManager()
           
 java.lang.String getSessionId()
           
 byte[] loadPage(int id)
          Loads the specified page data.
 byte[] loadPage(PageWindowManager.PageWindow window)
          Loads the part of pagemap file specified by the given PageWindow.
 void removePage(int pageId)
          Removes the page from pagemap file.
 void savePage(int pageId, byte[] data)
          Saves the serialized page to appropriate file.
 void unbind()
          Deletes all files for this session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiskDataStore.SessionEntry

protected DiskDataStore.SessionEntry(DiskDataStore diskDataStore,
                                     java.lang.String sessionId)
Method Detail

getManager

public PageWindowManager getManager()

getSessionId

public java.lang.String getSessionId()
Returns:
session id

savePage

public void savePage(int pageId,
                     byte[] data)
Saves the serialized page to appropriate file.

Parameters:
pageId -
data -

removePage

public void removePage(int pageId)
Removes the page from pagemap file.

Parameters:
pageId -

loadPage

public byte[] loadPage(PageWindowManager.PageWindow window)
Loads the part of pagemap file specified by the given PageWindow.

Parameters:
window -
Returns:
serialized page data

loadPage

public byte[] loadPage(int id)
Loads the specified page data.

Parameters:
id -
Returns:
page data or null if the page is no longer in pagemap file

unbind

public void unbind()
Deletes all files for this session.



Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.