|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.RequestCycle
org.apache.wicket.protocol.http.WebRequestCycle
public class WebRequestCycle
RequestCycle implementation for HTTP protocol. Holds the application, session, request and response objects for a given HTTP request. Contains methods (urlFor*) which yield a URL for bookmarkable pages as well as non-bookmarkable component interfaces. The protected handleRender method is the internal entrypoint which takes care of the details of rendering a response to an HTTP request.
RequestCycle| Field Summary |
|---|
| Fields inherited from class org.apache.wicket.RequestCycle |
|---|
application, processor, request, response |
| Constructor Summary | |
|---|---|
WebRequestCycle(WebApplication application,
WebRequest request,
Response response)
Constructor which simply passes arguments to superclass for storage there. |
|
| Method Summary | |
|---|---|
IRequestCycleProcessor |
getProcessor()
By default returns the WebApplication's default request cycle processor. |
WebRequest |
getWebRequest()
|
WebResponse |
getWebResponse()
|
WebSession |
getWebSession()
|
boolean |
isRedirect()
If it's an ajax request we always redirect. |
protected ClientInfo |
newClientInfo()
Creates a new agent info object based on this request. |
void |
redirectTo(Page page)
Redirects browser to the given page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebRequestCycle(WebApplication application,
WebRequest request,
Response response)
application - The applicationrequest - The requestresponse - The response| Method Detail |
|---|
public IRequestCycleProcessor getProcessor()
WebApplication.newRequestCycleProcessor().
if you decide to override this method to provide a custom processor per request
cycle, any mounts done via WebApplication will not work and and
RequestCycle.onRuntimeException(Page, RuntimeException) is not called unless you deliberately put
effort in it to make it work.
getProcessor in class RequestCycleRequestCycle.getProcessor()public WebRequest getWebRequest()
public WebResponse getWebResponse()
public WebSession getWebSession()
public final void redirectTo(Page page)
redirectTo in class RequestCyclepage - The page to redirect toprotected ClientInfo newClientInfo()
RequestCycleRequestCycle.newClientInfo() might be relatively expensive.
newClientInfo in class RequestCycleRequestCycle.newClientInfo()public final boolean isRedirect()
isRedirect in class RequestCycleRequestCycle.isRedirect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||