public class BaseExecutionResult extends java.lang.Object implements ExecutionResult
Modifier and Type | Method and Description |
---|---|
static ExecutionResult |
create(boolean success,
DispatcherResult object)
Create a Success result with an object
|
static ExecutionResult |
createFailure(java.lang.Exception exception)
Create a failure result with an exception
|
static ExecutionResult |
createSuccess(DispatcherResult object)
Create a Success result with an object
|
java.lang.Exception |
getException() |
DispatcherResult |
getResultObject() |
boolean |
isSuccess() |
java.lang.String |
toString() |
public static ExecutionResult create(boolean success, DispatcherResult object)
success
- true if successfulobject
- result objectpublic static ExecutionResult createSuccess(DispatcherResult object)
object
- result objectpublic static ExecutionResult createFailure(java.lang.Exception exception)
exception
- exceptionpublic boolean isSuccess()
isSuccess
in interface StatusResult
public java.lang.Exception getException()
getException
in interface ExceptionStatusResult
public DispatcherResult getResultObject()
getResultObject
in interface ExecutionResult
public java.lang.String toString()
toString
in class java.lang.Object