org.eclipse.ecf.remoteservice.rpc.client
Class TrivialParameterServializer

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.rpc.client.TrivialParameterServializer
All Implemented Interfaces:
IRemoteCallParameterSerializer

public class TrivialParameterServializer
extends java.lang.Object
implements IRemoteCallParameterSerializer

Trivial parameter serializer - just copy a parameter value


Constructor Summary
TrivialParameterServializer()
           
 
Method Summary
 IRemoteCallParameter[] serializeParameter(java.lang.String endpoint, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter[] currentParameters, java.lang.Object[] paramToSerialize)
          Serializes all remote call parameters of this call.
 IRemoteCallParameter serializeParameter(java.lang.String endpoint, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault, java.lang.Object paramToSerialize)
          All parameters will be serialized in the Apache XML-RPC library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialParameterServializer

public TrivialParameterServializer()
Method Detail

serializeParameter

public IRemoteCallParameter[] serializeParameter(java.lang.String endpoint,
                                                 IRemoteCall call,
                                                 IRemoteCallable callable,
                                                 IRemoteCallParameter[] currentParameters,
                                                 java.lang.Object[] paramToSerialize)
                                          throws java.io.NotSerializableException
Description copied from interface: IRemoteCallParameterSerializer
Serializes all remote call parameters of this call. This method is invoked after IRemoteCallParameterIRemoteCallParameterSerializer.serializeParameter(String, IRemoteCall, IRemoteCallable, IRemoteCallParameter, Object) and allows to override its results (read override IRemoteCallParameters).

Specified by:
serializeParameter in interface IRemoteCallParameterSerializer
Parameters:
endpoint - the endpoint. Should not be null.
call - the call associated with the parameter to serialize. Will not be null.
callable - the callable associated with the parameter to serialize. Will not be null.
currentParameters - the list of current parameters (from the callable) that would be send
paramToSerialize - all parameters to serialize.
Returns:
List the serialized parameters...with appropriate name and serialized value.
Throws:
java.io.NotSerializableException
See Also:
"https://bugs.eclipse.org/408034"

serializeParameter

public IRemoteCallParameter serializeParameter(java.lang.String endpoint,
                                               IRemoteCall call,
                                               IRemoteCallable callable,
                                               IRemoteCallParameter paramDefault,
                                               java.lang.Object paramToSerialize)
All parameters will be serialized in the Apache XML-RPC library. We shouldn't serialize any parameters by default.

Specified by:
serializeParameter in interface IRemoteCallParameterSerializer
Parameters:
endpoint - the endpoint. Should not be null.
call - the call associated with the parameter to serialize. Will not be null.
callable - the callable associated with the parameter to serialize. Will not be null.
paramDefault - the default value (from the callable), for the parameter to serialize.
paramToSerialize - the actual parameter value to serialize.
Returns:
the parameter value