|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.handler.RenderPageRequestHandler
public class RenderPageRequestHandler
IRequestHandler that renders page instance. Depending on the redirectPolicy
flag and current request strategy the handler either just renders the page to the response, or
redirects to render the page. REDIRECT_TO_BUFFER strategy is also supported.
| Nested Class Summary | |
|---|---|
static class |
RenderPageRequestHandler.RedirectPolicy
Determines whether Wicket does a redirect when rendering a page |
| Constructor Summary | |
|---|---|
RenderPageRequestHandler(IPageProvider pageProvider)
Construct. |
|
RenderPageRequestHandler(IPageProvider pageProvider,
RenderPageRequestHandler.RedirectPolicy redirectPolicy)
Construct. |
|
| Method Summary | |
|---|---|
void |
detach(IRequestCycle 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. |
PageLogData |
getLogData()
Returns the collected log data for this request handler and should never throw an exception. |
IRequestablePage |
getPage()
Returns the page. |
Class<? extends IRequestablePage> |
getPageClass()
Returns the page class |
Integer |
getPageId()
Returns the page id. |
PageParameters |
getPageParameters()
|
IPageProvider |
getPageProvider()
|
RenderPageRequestHandler.RedirectPolicy |
getRedirectPolicy()
|
Integer |
getRenderCount()
Returns the number of times this page has been rendered. |
boolean |
isPageInstanceCreated()
Checks if the page instance is already created or if it will be created when IPageRequestHandler.getPage() is called |
void |
respond(IRequestCycle requestCycle)
Generates a response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RenderPageRequestHandler(IPageProvider pageProvider)
pageProvider -
public RenderPageRequestHandler(IPageProvider pageProvider,
RenderPageRequestHandler.RedirectPolicy redirectPolicy)
pageProvider - redirectPolicy - | Method Detail |
|---|
public IPageProvider getPageProvider()
public RenderPageRequestHandler.RedirectPolicy getRedirectPolicy()
public Class<? extends IRequestablePage> getPageClass()
getPageClass in interface IPageClassRequestHandlerpublic Integer getPageId()
IPageRequestHandler
getPageId in interface IPageRequestHandlerIPageRequestHandler.getPageId()public PageParameters getPageParameters()
getPageParameters in interface IPageClassRequestHandlerpublic void detach(IRequestCycle requestCycle)
detach in interface IRequestHandlerrequestCycle - the current request cyclepublic PageLogData getLogData()
getLogData in interface ILoggableRequestHandlerpublic IRequestablePage getPage()
getPage in interface IPageRequestHandlerpublic void respond(IRequestCycle requestCycle)
respond in interface IRequestHandlerrequestCycle - the current request cyclepublic final boolean isPageInstanceCreated()
IPageRequestHandlerIPageRequestHandler.getPage() is called
isPageInstanceCreated in interface IPageRequestHandlertrue iff page instance is not yet createdpublic final Integer getRenderCount()
IPageRequestHandler
getRenderCount in interface IPageRequestHandlerIRequestablePage.getRenderCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||