|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.RequestHandlerStack
public abstract class RequestHandlerStack
Manages stack of executions of IRequestHandlers.
| Nested Class Summary | |
|---|---|
static class |
RequestHandlerStack.ReplaceHandlerException
Exception to stop current request handler and execute a new one. |
| Constructor Summary | |
|---|---|
RequestHandlerStack()
|
|
| Method Summary | |
|---|---|
void |
detach()
Detaches all request handlers |
protected abstract void |
detach(IRequestHandler handler)
Allows the request handler to detach |
void |
execute(IRequestHandler handler)
|
IRequestHandler |
getActive()
|
IRequestHandler |
next()
|
void |
replaceAll(IRequestHandler handler)
Replaces all request handlers on the stack with the specified one and executes it. |
IRequestHandler |
resolveHandler(RuntimeException exception)
Certain exceptions can carry a request handler they wish to be executed, this method tries to resolve such a handler given an exception. |
protected abstract void |
respond(IRequestHandler handler)
Allows the request handler to respond to the request |
void |
schedule(IRequestHandler handler)
Schedules the handler after the current one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequestHandlerStack()
| Method Detail |
|---|
public IRequestHandler getActive()
public void execute(IRequestHandler handler)
handler - public final IRequestHandler resolveHandler(RuntimeException exception)
exception -
protected abstract void respond(IRequestHandler handler)
handler - public void schedule(IRequestHandler handler)
handler - public IRequestHandler next()
public void replaceAll(IRequestHandler handler)
IRequestHandler.respond(IRequestCycle)) the execution is interrupted via an
exception.
handler - public void detach()
protected abstract void detach(IRequestHandler handler)
handler -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||