|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.protocol.http.TestFilePageStore
public class TestFilePageStore
Stores pages on disk.
Override getWorkDir()
to change the default directory for pages, which is configured
from the javax.servlet.context.tempdir attribute in the servlet context.
Field Summary | |
---|---|
protected static org.slf4j.Logger |
log
log. |
Constructor Summary | |
---|---|
TestFilePageStore()
Construct. |
|
TestFilePageStore(File dir)
Construct. |
Method Summary | ||
---|---|---|
boolean |
containsPage(String sessionId,
String pageMapName,
int pageId,
int pageVersion)
Returns whether the PageStore contains given page. |
|
void |
destroy()
Destroy the store. |
|
|
getPage(String sessionId,
String pagemap,
int id,
int versionNumber,
int ajaxVersionNumber)
Restores a page version from the persistent layer. |
|
void |
pageAccessed(String sessionId,
Page page)
This method is called when the page is accessed. |
|
void |
removePage(String sessionId,
String pageMapName,
int pageId)
Removes a page from the persistent layer. |
|
void |
storePage(String sessionId,
Page page)
Stores the page to a persistent layer. |
|
void |
unbind(String sessionId)
The pagestore should cleanup all the pages for that sessionid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.slf4j.Logger log
Constructor Detail |
---|
public TestFilePageStore()
public TestFilePageStore(File dir)
dir
- The directory to save to.Method Detail |
---|
public void destroy()
SecondLevelCacheSessionStore.IPageStore
destroy
in interface SecondLevelCacheSessionStore.IPageStore
public <T> Page getPage(String sessionId, String pagemap, int id, int versionNumber, int ajaxVersionNumber)
SecondLevelCacheSessionStore.IPageStore
Note that the versionNumber and ajaxVersionNumber parameters may be -1.
getPage
in interface SecondLevelCacheSessionStore.IPageStore
T
- type of page
public void pageAccessed(String sessionId, Page page)
SecondLevelCacheSessionStore.IPageStore
pageAccessed
in interface SecondLevelCacheSessionStore.IPageStore
public void removePage(String sessionId, String pageMapName, int pageId)
SecondLevelCacheSessionStore.IPageStore
removePage
in interface SecondLevelCacheSessionStore.IPageStore
sessionId
- The session of the page that must be removedpageMapName
- The pagemap of the page that must be removedpageId
- The id of the page.public void storePage(String sessionId, Page page)
SecondLevelCacheSessionStore.IPageStore
storePage
in interface SecondLevelCacheSessionStore.IPageStore
public void unbind(String sessionId)
SecondLevelCacheSessionStore.IPageStore
unbind
in interface SecondLevelCacheSessionStore.IPageStore
public boolean containsPage(String sessionId, String pageMapName, int pageId, int pageVersion)
SecondLevelCacheSessionStore.IPageStore
containsPage
in interface SecondLevelCacheSessionStore.IPageStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |