|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.page.RequestAdapter
public abstract class RequestAdapter
Request scoped helper class for IPageManager
.
Constructor Summary | |
---|---|
RequestAdapter(IPageManagerContext context)
Construct. |
Method Summary | |
---|---|
protected void |
bind()
Bind the session |
protected void |
commitRequest()
|
protected IManageablePage |
findPage(int id)
|
protected abstract IManageablePage |
getPage(int id)
Returns the page with specified id. |
Serializable |
getSessionAttribute(String key)
|
String |
getSessionId()
|
protected abstract void |
newSessionCreated()
Notification on new session being created. |
void |
setSessionAttribute(String key,
Serializable value)
|
protected abstract void |
storeTouchedPages(List<IManageablePage> touchedPages)
Store the list of stateful pages. |
protected void |
touch(IManageablePage page)
Touches a page, so it will be stored in the page stores at the end of the request cycle |
protected void |
untouch(IManageablePage page)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestAdapter(IPageManagerContext context)
context
- The page manager contextMethod Detail |
---|
protected abstract IManageablePage getPage(int id)
RequestAdapter
during
the rest of request processing.
id
-
null
if the page does not exist.protected abstract void storeTouchedPages(List<IManageablePage> touchedPages)
touchedPages
- protected abstract void newSessionCreated()
protected void bind()
IPageManagerContext.bind()
public void setSessionAttribute(String key, Serializable value)
key
- value
- IPageManagerContext.setSessionAttribute(String, Serializable)
public Serializable getSessionAttribute(String key)
key
-
IPageManagerContext.getSessionAttribute(String)
public String getSessionId()
IPageManagerContext.getSessionId()
protected IManageablePage findPage(int id)
id
-
protected void touch(IManageablePage page)
page
- The page to mark as dirtyprotected void untouch(IManageablePage page)
page
- The page to unmark as dirty, so it won't be stored
at the end of the request cycleprotected void commitRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |