com.flat502.rox.marshal
Class UnmarshallerAid

java.lang.Object
  extended by com.flat502.rox.marshal.UnmarshallerAid
Direct Known Subclasses:
MethodCallUnmarshallerAid, MethodResponseUnmarshallerAid

public abstract class UnmarshallerAid
extends java.lang.Object

An assistive interface intended to support unmarshalling.

Implementations provide additional customizations for the unmarshalling process.

See Also:
MethodCallUnmarshallerAid, MethodResponseUnmarshallerAid

Constructor Summary
UnmarshallerAid()
           
 
Method Summary
 FieldNameCodec getFieldNameCodec(java.lang.String methodName)
          Invoked when a method call unmarshaller is required.
 boolean ignoreMissingFields()
          Implementations may override this to control whether or not missing fields are ignored during unmarshalling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmarshallerAid

public UnmarshallerAid()
Method Detail

getFieldNameCodec

public FieldNameCodec getFieldNameCodec(java.lang.String methodName)
Invoked when a method call unmarshaller is required.

This method allows request handlers to override the default unmarshaller implementation for a given method (or class of methods) without imposing that unmarshaller on all request handlers.

Implementations may return the same instance for multiple calls to this method as long as the unmarshaller is thread-safe.

Implementations may return null in which case a default unmarshalling implementation will be used.

Parameters:
methodName - The name of the XML-RPC method call being unmarshalled.
Returns:
A new MethodCallUnmarshaller instance or null.

ignoreMissingFields

public boolean ignoreMissingFields()
Implementations may override this to control whether or not missing fields are ignored during unmarshalling.

Returns:
true if missing fields should be ignored or false if they should result in an error.