|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.FlowExecutionExceptionHandlerSet
public class FlowExecutionExceptionHandlerSet
A typed set of state exception handlers, mainly for use internally by artifacts that can apply state exception handling logic.
FlowExecutionExceptionHandler
,
Flow.getExceptionHandlerSet()
,
State.getExceptionHandlerSet()
Constructor Summary | |
---|---|
FlowExecutionExceptionHandlerSet()
|
Method Summary | |
---|---|
boolean |
add(FlowExecutionExceptionHandler exceptionHandler)
Add a state exception handler to this set. |
boolean |
addAll(FlowExecutionExceptionHandler[] exceptionHandlers)
Add a collection of state exception handler instances to this set. |
boolean |
contains(FlowExecutionExceptionHandler exceptionHandler)
Tests if this state exception handler is in this set. |
ViewSelection |
handleException(FlowExecutionException exception,
RequestControlContext context)
Handle an exception that occured during the context of the current flow execution request. |
boolean |
remove(FlowExecutionExceptionHandler exceptionHandler)
Remove the exception handler instance from this set. |
int |
size()
Returns the size of this state exception handler set. |
FlowExecutionExceptionHandler[] |
toArray()
Convert this list to a typed state exception handler array. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlowExecutionExceptionHandlerSet()
Method Detail |
---|
public boolean add(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to add
public boolean addAll(FlowExecutionExceptionHandler[] exceptionHandlers)
exceptionHandlers
- the exception handlers to add
public boolean contains(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler
public boolean remove(FlowExecutionExceptionHandler exceptionHandler)
exceptionHandler
- the exception handler to add
public int size()
public FlowExecutionExceptionHandler[] toArray()
public ViewSelection handleException(FlowExecutionException exception, RequestControlContext context)
This implementation iterates over the ordered set of exception handler objects, delegating to each handler in the set until one handles the exception that occured and selects a non-null error view.
exception
- the exception that occuredcontext
- the flow execution control context
null
if no handler matched or returned a non-null view
selectionpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |