public class HandlerAction extends Object
PreProcessHandler
,
PostProcessHandler
Constructor and Description |
---|
HandlerAction(HandlerStatus status)
Constructor.
|
HandlerAction(HandlerStatus status,
String message)
Constructor.
|
HandlerAction(HandlerStatus status,
String message,
Throwable throwable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Gets the message associated with a handler execution.
|
HandlerStatus |
getStatus()
Gets the status of a handler execution.
|
Throwable |
getThrowable()
Gets the Throwable associated with a handler execution.
|
public HandlerAction(HandlerStatus status)
status
- The status of a handler execution.
Value may be: PROCEED, WARN, DELAY, CANCEL, SYSTEM_ERROR, BIZ_ERROR.
This status may result in a state transition for the request.public HandlerAction(HandlerStatus status, String message)
status
- The status of a handler execution.
Value may be: PROCEED, WARN, DELAY, CANCEL, SYSTEM_ERROR, BIZ_ERROR.
This status may result in a state transition for the request.message
- A message that, depending on the value of status
,
may be used for various purposes.public HandlerAction(HandlerStatus status, String message, Throwable throwable)
status
- The status of a handler execution.
Value may be: PROCEED, WARN, DELAY, CANCEL, SYSTEM_ERROR, BIZ_ERROR.
This status may result in a state transition for the request.message
- A message that, depending on the value of status
,
may be used for various purposes.throwable
- Further information about the status of this handler
execution.public HandlerStatus getStatus()
public String getMessage()
public Throwable getThrowable()