java.lang.Object | |
↳ | org.springframework.remoting.support.RemoteInvocation |
Encapsulates a remote invocation, providing core method invocation properties in a serializable fashion. Used for RMI and 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 RemoteInvocation for use as JavaBean.
| |||||||||||
Create a new RemoteInvocation for the given parameters.
| |||||||||||
Create a new RemoteInvocation for the given AOP method invocation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add an additional invocation attribute.
| |||||||||||
Return the arguments for the target method call.
| |||||||||||
Retrieve the attribute for the given key, if any.
| |||||||||||
Return the attributes Map.
| |||||||||||
Return the name of the target method.
| |||||||||||
Return the parameter types of the target method.
| |||||||||||
Perform this invocation on the given target object.
| |||||||||||
Set the arguments for the target method call.
| |||||||||||
Set the attributes Map.
| |||||||||||
Set the name of the target method.
| |||||||||||
Set the parameter types of the target method.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a new RemoteInvocation for use as JavaBean.
Create a new RemoteInvocation for the given parameters.
methodName | the name of the method to invoke |
---|---|
parameterTypes | the parameter types of the method |
arguments | the arguments for the invocation |
Create a new RemoteInvocation for the given AOP method invocation.
methodInvocation | the AOP invocation to convert |
---|
Add an additional invocation attribute. Useful to add additional invocation context without having to subclass RemoteInvocation.
Attribute keys have to be unique, and no overriding of existing attributes is allowed.
The implementation avoids to unnecessarily create the attributes Map, to minimize serialization size.
key | the attribute key |
---|---|
value | the attribute value |
IllegalStateException | if the key is already bound |
---|
Retrieve the attribute for the given key, if any.
The implementation avoids to unnecessarily create the attributes Map, to minimize serialization size.
key | the attribute key |
---|
null
if not defined
Return the attributes Map. Mainly here for debugging purposes:
Preferably, use addAttribute(String, Serializable)
and getAttribute(String)
.
null
if none createdPerform this invocation on the given target object. Typically called when a RemoteInvocation is received on the server.
targetObject | the target object to apply the invocation to |
---|
NoSuchMethodException | if the method name could not be resolved |
---|---|
IllegalAccessException | if the method could not be accessed |
InvocationTargetException | if the method invocation resulted in an exception |
Set the attributes Map. Only here for special purposes:
Preferably, use addAttribute(String, Serializable)
and getAttribute(String)
.
attributes | the attributes Map |
---|
Set the parameter types of the target method.