|
||||||||||
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 abstract IManageablePage |
getPage(int id)
Returns the page with specified id. |
java.io.Serializable |
getSessionAttribute(java.lang.String key)
|
java.lang.String |
getSessionId()
|
protected abstract void |
newSessionCreated()
Notification on new session being created. |
void |
setSessionAttribute(java.lang.String key,
java.io.Serializable value)
|
protected abstract void |
storeTouchedPages(java.util.List<IManageablePage> touchedPages)
Store the list of stateful pages. |
protected void |
touch(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(java.util.List<IManageablePage> touchedPages)
touchedPages
- protected abstract void newSessionCreated()
protected void bind()
IPageManagerContext.bind()
public void setSessionAttribute(java.lang.String key, java.io.Serializable value)
key
- value
- IPageManagerContext.setSessionAttribute(String, Serializable)
public java.io.Serializable getSessionAttribute(java.lang.String key)
key
-
IPageManagerContext.getSessionAttribute(String)
public java.lang.String getSessionId()
IPageManagerContext.getSessionId()
protected void touch(IManageablePage page)
page
- protected void commitRequest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |