org.apache.wicket.devutils.diskstore
Class DebugDiskDataStore

java.lang.Object
  extended by org.apache.wicket.pageStore.DiskDataStore
      extended by org.apache.wicket.devutils.diskstore.DebugDiskDataStore
All Implemented Interfaces:
IDataStore

public class DebugDiskDataStore
extends DiskDataStore

An extension of DiskDataStore that is able to browse the content of the file storage.

To enable it add in YourApplication#init():

 
 DebugDiskDataStore.register(this);
 
 

The data can be browsed at: /wicket/internal/debug/diskDataStore


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.pageStore.DiskDataStore
DiskDataStore.SessionEntry
 
Constructor Summary
DebugDiskDataStore(String applicationName, File fileStoreFolder, Bytes maxSizePerSession)
          Construct.
 
Method Summary
 List<PageWindowManager.PageWindow> getLastPageWindows(String sessionId, int count)
           
 File getStoreFolder()
          This folder contains sub-folders named as the session id for which they hold the data.
static void register(Application application)
          Configures the page manager provider and mounts the page at wicket/internal/debug/diskDataStore
 
Methods inherited from class org.apache.wicket.pageStore.DiskDataStore
destroy, getData, getSessionEntry, getSessionFolder, isReplicated, removeData, removeData, storeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugDiskDataStore

public DebugDiskDataStore(String applicationName,
                          File fileStoreFolder,
                          Bytes maxSizePerSession)
Construct.

Parameters:
applicationName -
fileStoreFolder -
maxSizePerSession -
Method Detail

getLastPageWindows

public List<PageWindowManager.PageWindow> getLastPageWindows(String sessionId,
                                                             int count)
Parameters:
sessionId -
count -
Returns:
a list of the last N page windows

getStoreFolder

public File getStoreFolder()
Description copied from class: DiskDataStore
This folder contains sub-folders named as the session id for which they hold the data.

Overrides:
getStoreFolder in class DiskDataStore
Returns:
the folder where the pages are stored

register

public static void register(Application application)
Configures the page manager provider and mounts the page at wicket/internal/debug/diskDataStore

Parameters:
application -


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