org.apache.wicket.devutils.diskstore
Class DebugDiskDataStore
java.lang.Object
org.apache.wicket.pageStore.DiskDataStore
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugDiskDataStore
public DebugDiskDataStore(String applicationName,
File fileStoreFolder,
Bytes maxSizePerSession)
- Construct.
- Parameters:
applicationName
- fileStoreFolder
- maxSizePerSession
-
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.