|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.target.component.BookmarkablePageRequestTarget
public class BookmarkablePageRequestTarget
Default implementation of IBookmarkablePageRequestTarget. Target that denotes a page that
is to be created from the provided page class. This is typically used for redirects to
bookmarkable pages or mounted pages.
We cannot issue redirects even with IRequestCycleSettings.REDIRECT_TO_RENDER because the
url has to be bookmarkable, eg user actually being able to bookmark it in the browser. if we
always redirected to a stateful url (e.g. /?wicket:interface=:0::::)that wouldn't work, as it
wouldn't be bookmarkable.
| Constructor Summary | |
|---|---|
BookmarkablePageRequestTarget(java.lang.Class<C> pageClass)
Construct. |
|
BookmarkablePageRequestTarget(java.lang.Class<C> pageClass,
PageParameters pageParameters)
Construct. |
|
BookmarkablePageRequestTarget(java.lang.String pageMapName,
java.lang.Class<C> pageClass)
Construct. |
|
BookmarkablePageRequestTarget(java.lang.String pageMapName,
java.lang.Class<C> pageClass,
PageParameters pageParameters)
Construct. |
|
| Method Summary | ||
|---|---|---|
void |
detach(RequestCycle requestCycle)
This method is called at the end of a request cycle to indicate that processing is done and that cleaning up of the subject(s) of this target may be done. |
|
boolean |
equals(java.lang.Object obj)
|
|
Page |
getPage()
|
|
protected Page |
getPage(RequestCycle requestCycle)
Gets a newly constructed page if we are not in a redirect. |
|
java.lang.Class<? extends Page> |
getPageClass()
Gets the page class. |
|
java.lang.String |
getPageMapName()
Gets the optional page map name. |
|
PageParameters |
getPageParameters()
Gets the optional page parameters. |
|
int |
hashCode()
|
|
protected
|
newPage(java.lang.Class<C> pageClass,
RequestCycle requestCycle)
Constructs a new instance of a page given its class name |
|
void |
processEvents(RequestCycle requestCycle)
After a page is restored, this method is responsible for calling any event handling code based on the request. |
|
void |
respond(RequestCycle requestCycle)
Generates a response. |
|
protected void |
setPage(Page page)
|
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BookmarkablePageRequestTarget(java.lang.Class<C> pageClass)
C - pageClass - the class of the page
public BookmarkablePageRequestTarget(java.lang.Class<C> pageClass,
PageParameters pageParameters)
C - pageClass - the class of the pagepageParameters - optional page parameters
public BookmarkablePageRequestTarget(java.lang.String pageMapName,
java.lang.Class<C> pageClass)
C - pageMapName - optional page map namepageClass - the class of the page
public BookmarkablePageRequestTarget(java.lang.String pageMapName,
java.lang.Class<C> pageClass,
PageParameters pageParameters)
C - type of pagepageMapName - optional page map namepageClass - the class of the pagepageParameters - optional page parameters| Method Detail |
|---|
public void detach(RequestCycle requestCycle)
IRequestTarget
detach in interface IRequestTargetrequestCycle - the current request cycleIRequestTarget.detach(org.apache.wicket.RequestCycle)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public final Page getPage()
protected final void setPage(Page page)
public final java.lang.Class<? extends Page> getPageClass()
IBookmarkablePageRequestTarget
getPageClass in interface IBookmarkablePageRequestTargetIBookmarkablePageRequestTarget.getPageClass()public final java.lang.String getPageMapName()
IBookmarkablePageRequestTarget
getPageMapName in interface IBookmarkablePageRequestTargetIBookmarkablePageRequestTarget.getPageMapName()public final PageParameters getPageParameters()
IBookmarkablePageRequestTarget
getPageParameters in interface IBookmarkablePageRequestTargetIBookmarkablePageRequestTarget.getPageParameters()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void processEvents(RequestCycle requestCycle)
IEventProcessor
processEvents in interface IEventProcessorrequestCycle - the current request cyclepublic void respond(RequestCycle requestCycle)
IRequestTarget
respond in interface IRequestTargetrequestCycle - the current request cyclepublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
protected <C extends Page> Page newPage(java.lang.Class<C> pageClass,
RequestCycle requestCycle)
C - type of pagepageClass - class name of the page to be createdrequestCycle - request cycle
protected final Page getPage(RequestCycle requestCycle)
requestCycle - the request cycle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||