|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.executor.support.ResponseInstructionHandler
public abstract class ResponseInstructionHandler
Abstract helper class that allows easy handling of all known view selection types. Users need to implement each of the hook methods dealing with a particular type of view selection, typically in an anonymous inner subclass of this class.
ViewSelection
Nested Class Summary | |
---|---|
static class |
ResponseInstructionHandler.RuntimeResponseHandlingException
Thrown during handleQuietly. |
Constructor Summary | |
---|---|
ResponseInstructionHandler()
|
Method Summary | |
---|---|
java.lang.Object |
getResult()
Returns the object resulting from response handling. |
ResponseInstructionHandler |
handle(ResponseInstruction responseInstruction)
Issue a response for given response instruction. |
protected abstract void |
handleApplicationView(ApplicationView view)
Issue a response for given application view. |
protected abstract void |
handleExternalRedirect(ExternalRedirect redirect)
Issue a response for given external redirect. |
protected abstract void |
handleFlowDefinitionRedirect(FlowDefinitionRedirect redirect)
Issue a response for given flow definition redirect. |
protected abstract void |
handleFlowExecutionRedirect(FlowExecutionRedirect redirect)
Issue a response for given flow execution redirect. |
protected abstract void |
handleNull()
Issue a respone for the null view selection. |
ResponseInstructionHandler |
handleQuietly(ResponseInstruction responseInstruction)
Quietly issue a response for given response instruction, turning any Exception raised while handling the response instruction into a RuntimeException. |
void |
setResult(java.lang.Object result)
Set the object resulting from response handling. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResponseInstructionHandler()
Method Detail |
---|
public void setResult(java.lang.Object result)
result
- the result objectpublic java.lang.Object getResult()
setResult(Object)
to set the result object.
public final ResponseInstructionHandler handle(ResponseInstruction responseInstruction) throws java.lang.Exception
responseInstruction
- the response instruction to issue a response for
ResponseInstructionHandler.RuntimeResponseHandlingException
- when an error occured
java.lang.Exception
public final ResponseInstructionHandler handleQuietly(ResponseInstruction responseInstruction)
responseInstruction
- the response instruction to issue a response for
protected abstract void handleApplicationView(ApplicationView view) throws java.lang.Exception
view
- the application view to issue a response for
ResponseInstructionHandler.RuntimeResponseHandlingException
- when an error occured
java.lang.Exception
ResponseInstruction.isActiveView()
,
ApplicationView
protected abstract void handleFlowDefinitionRedirect(FlowDefinitionRedirect redirect) throws java.lang.Exception
redirect
- the flow definition redirect to issue a response for
ResponseInstructionHandler.RuntimeResponseHandlingException
- when an error occured
java.lang.Exception
ResponseInstruction.isFlowDefinitionRedirect()
,
FlowDefinitionRedirect
protected abstract void handleFlowExecutionRedirect(FlowExecutionRedirect redirect) throws java.lang.Exception
redirect
- the flow execution redirect to issue a response for
ResponseInstructionHandler.RuntimeResponseHandlingException
- when an error occured
java.lang.Exception
ResponseInstruction.isFlowExecutionRedirect()
,
FlowExecutionRedirect
protected abstract void handleExternalRedirect(ExternalRedirect redirect) throws java.lang.Exception
redirect
- the external redirect to issue a response for
ResponseInstructionHandler.RuntimeResponseHandlingException
- when an error occured
java.lang.Exception
ResponseInstruction.isExternalRedirect()
,
ExternalRedirect
protected abstract void handleNull() throws java.lang.Exception
ResponseInstructionHandler.RuntimeResponseHandlingException
java.lang.Exception
ResponseInstruction.isNull()
,
ViewSelection.NULL_VIEW
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |