|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wicket.request.compound.AbstractCompoundRequestCycleProcessor
public abstract class AbstractCompoundRequestCycleProcessor
A request cycle processor implementatation that delegates to pluggable strategies. This processor is abstract so that it can easily be used as a factory if wanted.
Constructor Summary | |
---|---|
AbstractCompoundRequestCycleProcessor()
Construct. |
Method Summary | |
---|---|
protected abstract IEventProcessorStrategy |
getEventProcessorStrategy()
Gets the strategy for the event process method. |
protected abstract IExceptionResponseStrategy |
getExceptionResponseStrategy()
Gets the strategy for the exception response method. |
protected abstract IRequestTargetResolverStrategy |
getRequestTargetResolverStrategy()
Gets the strategy for the resolve method. |
protected abstract IResponseStrategy |
getResponseStrategy()
Gets the strategy for the response method. |
void |
processEvents(RequestCycle requestCycle)
After a page is restored, this method is responsible for calling any event handling code based on the request. |
IRequestTarget |
resolve(RequestCycle requestCycle,
RequestParameters requestParameters)
Resolves the request and returns the request target. |
void |
respond(RequestCycle requestCycle)
After the target is resolved and the request events are handled, it is time to respond to the request. |
void |
respond(java.lang.RuntimeException e,
RequestCycle requestCycle)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface wicket.request.IRequestCycleProcessor |
---|
getRequestCodingStrategy |
Constructor Detail |
---|
public AbstractCompoundRequestCycleProcessor()
Method Detail |
---|
public IRequestTarget resolve(RequestCycle requestCycle, RequestParameters requestParameters)
IRequestCycleProcessor
Resolves the request and returns the request target. Typically, the
resolver uses the RequestParameters
object that is
passed in.
Implementors of this method should be careful not to mix this code with
event handling code; method IRequestCycleProcessor.processEvents(RequestCycle)
is meant
for that purpose.
resolve
in interface IRequestCycleProcessor
requestCycle
- the current request cyclerequestParameters
- The request parameters object as decoded by this processor's
IRequestCodingStrategy
.
IRequestCycleProcessor.resolve(wicket.RequestCycle,
RequestParameters)
public void processEvents(RequestCycle requestCycle)
IRequestCycleProcessor
IRequestCycleProcessor.resolve(RequestCycle, RequestParameters)
should return
the page that that link resides on, and this method should call the
ILinkListener
interface on that
component.
processEvents
in interface IRequestCycleProcessor
requestCycle
- the current request cycleIRequestCycleProcessor.processEvents(wicket.RequestCycle)
public void respond(RequestCycle requestCycle)
IRequestCycleProcessor
respond
in interface IRequestCycleProcessor
requestCycle
- the current request cycleIRequestCycleProcessor.respond(wicket.RequestCycle)
public void respond(java.lang.RuntimeException e, RequestCycle requestCycle)
IRequestCycleProcessor
respond
in interface IRequestCycleProcessor
e
- any unhandled exceptionrequestCycle
- the current request cycleIRequestCycleProcessor.respond(java.lang.RuntimeException,
wicket.RequestCycle)
protected abstract IRequestTargetResolverStrategy getRequestTargetResolverStrategy()
protected abstract IEventProcessorStrategy getEventProcessorStrategy()
protected abstract IResponseStrategy getResponseStrategy()
protected abstract IExceptionResponseStrategy getExceptionResponseStrategy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |