| org.apache.wicket.request.IRequestCycleProcessor
All known Subclasses: org.apache.wicket.request.AbstractRequestCycleProcessor,
IRequestCycleProcessor | public interface IRequestCycleProcessor (Code) | |
The request cycle processor is responsible for handling the steps of a
request cycle. It's methods are called in a pre-defined order:
-
IRequestCycleProcessor.resolve(RequestCycle,RequestParameters) is called to get the
request target. A request might refer to e.g. a bookmarkable page, a listener
interface call on a component on a previously rendered page, a shared
resource or e.g. a non-wicket resource that resides in the web application
folder.
-
IRequestCycleProcessor.processEvents(RequestCycle) is called after the target is
resolved. It is meant to handle/ distribute events like e.g. listener
interface calls on components. During this processing, the request target may
be changed (e.g. by calling setResponsePage). What actually happens is that
org.apache.wicket.RequestCycle holds a stack of targets, of which it will take
to last addition as the recent one, but walks the whole stack in order to do
cleaning up after the request is handled.
-
IRequestCycleProcessor.respond(RequestCycle) is called to create a response to the
requesting client. Typically, the actual response handling is to be (or
delegated) by the request target implementation, but different strategies
might do as they seem fit.
-
IRequestCycleProcessor.respond(RuntimeException,RequestCycle) is called whenever an
uncaught exception occurs during the event handling or response phase so that
an appropriate exception response can be generated. This method is guaranteed
to be called whenever such an exception happens, but will never be called
otherwise.
See Also: AbstractRequestCycleProcessor See Also: WebRequestCycleProcessor author: hillenius |
respond | void respond(RequestCycle requestCycle)(Code) | | After the target is resolved and the request events are handled, it is
time to respond to the request. This method is responsible for executing
the proper response sequence given the current request target and
response.
Parameters: requestCycle - the current request cycle |
respond | void respond(RuntimeException e, RequestCycle requestCycle)(Code) | | Whenever a unhandled exception is encountered during the processing of a
request cycle, this method is called to respond to the request in a
proper way.
Parameters: e - any unhandled exception Parameters: requestCycle - the current request cycle |
|
|