public abstract class RequestHandlerStack extends Object
IRequestHandlers.| Modifier and Type | Class and Description |
|---|---|
static class |
RequestHandlerStack.ReplaceHandlerException
Exception to stop current request handler and execute a new one.
|
| Constructor and Description |
|---|
RequestHandlerStack() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 - Copyright © 2006–2015 Apache Software Foundation. All rights reserved.