| 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 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 |
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 |
|
|