java.lang.Object | |
↳ | org.springframework.remoting.support.RemoteInvocationResult |
Encapsulates a remote invocation result, holding a result value or an exception. Used for HTTP-based serialization invokers.
This is an SPI class, typically not used directly by applications. Can be subclassed for additional invocation parameters.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new RemoteInvocationResult for the given result value.
| |||||||||||
Create a new RemoteInvocationResult for the given exception.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the exception thrown by an unsuccessful invocation
of the target method, if any.
| |||||||||||
Return the result value returned by a successful invocation
of the target method, if any.
| |||||||||||
Return whether this invocation result holds an exception.
| |||||||||||
Return whether this invocation result holds an InvocationTargetException,
thrown by an invocation of the target method itself.
| |||||||||||
Recreate the invocation result, either returning the result value
in case of a successful invocation of the target method, or
rethrowing the exception thrown by the target method.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new RemoteInvocationResult for the given result value.
value | the result value returned by a successful invocation of the target method |
---|
Create a new RemoteInvocationResult for the given exception.
exception | the exception thrown by an unsuccessful invocation of the target method |
---|
Return the exception thrown by an unsuccessful invocation of the target method, if any.
Return the result value returned by a successful invocation of the target method, if any.
Return whether this invocation result holds an exception.
If this returns false
, the result value applies
(even if null
).
Return whether this invocation result holds an InvocationTargetException, thrown by an invocation of the target method itself.
Recreate the invocation result, either returning the result value in case of a successful invocation of the target method, or rethrowing the exception thrown by the target method.
Throwable | the exception, if any |
---|