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, org.apache.wicket.util.lang.Bytes maxSizePerSession)
          Construct.
 
Method Summary
 List<PageWindowManager.PageWindow> getLastPageWindows(String sessionId, int count)
           
 File getStoreFolder()
           
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
canBeAsynchronous, 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,
                          org.apache.wicket.util.lang.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()
Overrides:
getStoreFolder in class DiskDataStore

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–2014 Apache Software Foundation. All rights reserved.