|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.UnmarshallerAid com.flat502.rox.marshal.MethodCallUnmarshallerAid com.flat502.rox.marshal.ArrayParameterTypeMapper
public class ArrayParameterTypeMapper
An implementation of MethodCallUnmarshallerAid
that maps a parameter index into a given array of Class
instances.
Constructor Summary | |
---|---|
ArrayParameterTypeMapper(java.lang.Class[] types)
Initializes a new instance using the given array. |
Method Summary | |
---|---|
FieldNameCodec |
getFieldNameCodec(java.lang.String methodName)
Invoked when a method call unmarshaller is required. |
java.lang.Class |
getType(java.lang.String methodName,
int index)
Map the given parameter index into the underlying array of Class instances. |
Methods inherited from class com.flat502.rox.marshal.UnmarshallerAid |
---|
ignoreMissingFields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayParameterTypeMapper(java.lang.Class[] types)
types
- The array of Class
instances to map parameters
onto. May be null
.Method Detail |
---|
public java.lang.Class getType(java.lang.String methodName, int index)
Class
instances.
getType
in class MethodCallUnmarshallerAid
methodName
- The name of the XML-RPC method being invoked.
This is ignored.index
- The index into the underlying array.
index
(which may be
null
) or null
if either
the backing array is null
or the
given index exceeds the size of the backing
array.public FieldNameCodec getFieldNameCodec(java.lang.String methodName)
UnmarshallerAid
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.
getFieldNameCodec
in class UnmarshallerAid
methodName
- The name of the XML-RPC method call being unmarshalled.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |