com.flat502.rox.marshal
Class MethodCallUnmarshallerAid

java.lang.Object
  extended by com.flat502.rox.marshal.UnmarshallerAid
      extended by com.flat502.rox.marshal.MethodCallUnmarshallerAid
Direct Known Subclasses:
ArrayParameterTypeMapper, ProxyingRequestHandler, RMIAsyncServerDemo, RpcMethodProxy

public abstract class MethodCallUnmarshallerAid
extends UnmarshallerAid

An assistive interface intended to support unmarshalling.

Implementations provide additional customizations for the unmarshalling process based on an RPC method name.

See Also:
HttpRpcServer.registerHandler(String, String, AsyncRequestHandler, MethodCallUnmarshallerAid), HttpRpcServer.registerHandler(String, String, SyncRequestHandler, MethodCallUnmarshallerAid)

Constructor Summary
MethodCallUnmarshallerAid()
           
 
Method Summary
abstract  java.lang.Class getType(java.lang.String methodName, int index)
          An implementation should return a Class instance representing the type a complex parameter value (a struct or an array) at the given index should be unmarshalled as.
 
Methods inherited from class com.flat502.rox.marshal.UnmarshallerAid
getFieldNameCodec, ignoreMissingFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallUnmarshallerAid

public MethodCallUnmarshallerAid()
Method Detail

getType

public abstract java.lang.Class getType(java.lang.String methodName,
                                        int index)
An implementation should return a Class instance representing the type a complex parameter value (a struct or an array) at the given index should be unmarshalled as.

A null return value will result in the parameter value being unmarshalled into a Map instance if, and only if, the parameter value is an XML-RPC struct and a List instance if, and only if, the value is an XML-RPC array.

The returned Class must be accessible, instantiable, and have an accessible default constructor.

Parameters:
methodName - The name of the XML-RPC method call being unmarshalled.
index - The index of the parameter value being unmarshalled.
Returns:
The Class for the type the parameter value should be unmarshalled as, assuming it is a struct or an array.