|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.protocol.http.pagestore.DiskPageStore.SessionEntry
protected static class DiskPageStore.SessionEntry
Represents a session,
Constructor Summary | |
---|---|
protected |
DiskPageStore.SessionEntry(DiskPageStore diskPageStore)
|
Method Summary | |
---|---|
boolean |
exists(String pageMapName,
int pageId,
int versionNumber)
Returns true if the given page exists for specified pageMap |
DiskPageStore.PageMapEntry |
getPageMapEntry(String pageMapName,
boolean create)
Returns a DiskPageStore.PageMapEntry for specified pagemap. |
List<DiskPageStore.PageMapEntry> |
getPageMapEntryList()
|
String |
getSessionId()
|
int |
getTotalSize()
|
byte[] |
loadPage(PageWindowManager.PageWindow window,
String pageMapFileName)
Loads the part of pagemap file specified by the given PageWindow. |
byte[] |
loadPage(String pageMapName,
int id,
int versionNumber,
int ajaxVersionNumber)
Loads the specified page data. |
void |
removePage(String pageMapName,
int pageId)
Removes the page from pagemap file. |
void |
removePageMap(String pageMapName)
Removes the specified pagemap and deletes the file. |
void |
savePage(AbstractPageStore.SerializedPage page)
Saves the serialized page to appropriate pagemap 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 |
---|
protected DiskPageStore.SessionEntry(DiskPageStore diskPageStore)
Method Detail |
---|
public String getSessionId()
public int getTotalSize()
public List<DiskPageStore.PageMapEntry> getPageMapEntryList()
DiskPageStore.PageMapEntry
for this sessionpublic DiskPageStore.PageMapEntry getPageMapEntry(String pageMapName, boolean create)
DiskPageStore.PageMapEntry
for specified pagemap. If the create attribute is set and
the pagemap does not exist, new DiskPageStore.PageMapEntry
will be created.
pageMapName
- create
-
public void removePageMap(String pageMapName)
pageMapName
- public void savePage(AbstractPageStore.SerializedPage page)
page
- public void removePage(String pageMapName, int pageId)
pageMapName
- pageId
- public byte[] loadPage(PageWindowManager.PageWindow window, String pageMapFileName)
window
- pageMapFileName
-
public byte[] loadPage(String pageMapName, int id, int versionNumber, int ajaxVersionNumber)
pageMapName
- id
- versionNumber
- ajaxVersionNumber
-
public void unbind()
public boolean exists(String pageMapName, int pageId, int versionNumber)
pageMapName
- pageId
- versionNumber
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |