| java.lang.Object org.springframework.remoting.support.RemoteInvocationResult
RemoteInvocationResult | public class RemoteInvocationResult implements Serializable(Code) | | 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.
author: Juergen Hoeller since: 1.1 See Also: RemoteInvocation |
Method Summary | |
public Throwable | getException() Return the exception thrown by an unsuccessful invocation
of the target method, if any. | public Object | getValue() Return the result value returned by a successful invocation
of the target method, if any. | public boolean | hasException() Return whether this invocation result holds an exception. | public boolean | hasInvocationTargetException() Return whether this invocation result holds an InvocationTargetException,
thrown by an invocation of the target method itself. | public Object | recreate() 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. |
RemoteInvocationResult | public RemoteInvocationResult(Object value)(Code) | | Create a new RemoteInvocationResult for the given result value.
Parameters: value - the result value returned by a successful invocationof the target method |
RemoteInvocationResult | public RemoteInvocationResult(Throwable exception)(Code) | | Create a new RemoteInvocationResult for the given exception.
Parameters: exception - the exception thrown by an unsuccessful invocationof the target method |
hasInvocationTargetException | public boolean hasInvocationTargetException()(Code) | | Return whether this invocation result holds an InvocationTargetException,
thrown by an invocation of the target method itself.
See Also: RemoteInvocationResult.hasException() |
recreate | public Object recreate() throws Throwable(Code) | | 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.
the result value, if any throws: Throwable - the exception, if any |
|
|