|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(Class<C> pageClass)
Construct. |
|
BookmarkablePageRequestTarget(Class<C> pageClass,
PageParameters pageParameters)
Construct. |
|
BookmarkablePageRequestTarget(String pageMapName,
Class<C> pageClass)
Construct. |
|
BookmarkablePageRequestTarget(String pageMapName,
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(Object obj)
|
|
Page |
getPage()
|
|
protected Page |
getPage(RequestCycle requestCycle)
Gets a newly constructed page if we are not in a redirect. |
|
Class<? extends Page> |
getPageClass()
Gets the page class. |
|
String |
getPageMapName()
Gets the optional page map name. |
|
PageParameters |
getPageParameters()
Gets the optional page parameters. |
|
int |
hashCode()
|
|
protected
|
newPage(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)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BookmarkablePageRequestTarget(Class<C> pageClass)
C
- pageClass
- the class of the pagepublic BookmarkablePageRequestTarget(Class<C> pageClass, PageParameters pageParameters)
C
- pageClass
- the class of the pagepageParameters
- optional page parameterspublic BookmarkablePageRequestTarget(String pageMapName, Class<C> pageClass)
C
- pageMapName
- optional page map namepageClass
- the class of the pagepublic BookmarkablePageRequestTarget(String pageMapName, Class<C> pageClass, PageParameters pageParameters)
C
- type of pagepageMapName
- optional page map namepageClass
- the class of the pagepageParameters
- optional page parametersMethod Detail |
---|
public void detach(RequestCycle requestCycle)
IRequestTarget
detach
in interface IRequestTarget
requestCycle
- the current request cycleIRequestTarget.detach(org.apache.wicket.RequestCycle)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public final Page getPage()
protected final void setPage(Page page)
public final Class<? extends Page> getPageClass()
IBookmarkablePageRequestTarget
getPageClass
in interface IBookmarkablePageRequestTarget
IBookmarkablePageRequestTarget.getPageClass()
public final String getPageMapName()
IBookmarkablePageRequestTarget
getPageMapName
in interface IBookmarkablePageRequestTarget
IBookmarkablePageRequestTarget.getPageMapName()
public final PageParameters getPageParameters()
IBookmarkablePageRequestTarget
getPageParameters
in interface IBookmarkablePageRequestTarget
IBookmarkablePageRequestTarget.getPageParameters()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void processEvents(RequestCycle requestCycle)
IEventProcessor
processEvents
in interface IEventProcessor
requestCycle
- the current request cyclepublic void respond(RequestCycle requestCycle)
IRequestTarget
respond
in interface IRequestTarget
requestCycle
- the current request cyclepublic String toString()
toString
in class Object
Object.toString()
protected <C extends Page> Page newPage(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 |