|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.xmlrpc.SaxMethodCallUnmarshaller
public class SaxMethodCallUnmarshaller
Parse XML RPC method call using SAX
Constructor Summary | |
---|---|
SaxMethodCallUnmarshaller()
|
|
SaxMethodCallUnmarshaller(SaxParserPool pool)
|
Method Summary | |
---|---|
protected RpcCall |
buildXmlRpcMethodCall(SaxUnmarshaller unmarshaller)
|
FieldNameCodec |
getDefaultFieldNameCodec()
This method is invoked when no specific FieldNameCodec exists. |
protected RpcCall |
unmarshal(org.xml.sax.InputSource in,
MethodCallUnmarshallerAid aid)
|
RpcCall |
unmarshal(java.io.InputStream in)
Unmarshal an RpcCall instance from an InputStream . |
RpcCall |
unmarshal(java.io.InputStream in,
java.lang.Class[] structClasses)
Unmarshal an RpcCall instance from an InputStream . |
RpcCall |
unmarshal(java.io.InputStream in,
MethodCallUnmarshallerAid aid)
Unmarshal an RpcCall instance from an InputStream . |
RpcCall |
unmarshal(java.io.Reader in)
Unmarshal an RpcCall instance from a Reader . |
RpcCall |
unmarshal(java.io.Reader in,
java.lang.Class[] structClasses)
Unmarshal an RpcCall instance from a Reader . |
RpcCall |
unmarshal(java.io.Reader in,
MethodCallUnmarshallerAid aid)
Unmarshal an RpcCall instance from a Reader . |
RpcCall |
unmarshal(java.lang.String xml)
Unmarshal an RpcCall instance from an XML string. |
RpcCall |
unmarshal(java.lang.String xml,
java.lang.Class[] structClasses)
Unmarshal an RpcCall instance from an XML string. |
RpcCall |
unmarshal(java.lang.String xml,
MethodCallUnmarshallerAid aid)
Unmarshal an RpcCall instance from an XML string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SaxMethodCallUnmarshaller(SaxParserPool pool)
public SaxMethodCallUnmarshaller()
Method Detail |
---|
protected RpcCall buildXmlRpcMethodCall(SaxUnmarshaller unmarshaller)
public RpcCall unmarshal(java.io.InputStream in, MethodCallUnmarshallerAid aid) throws java.lang.Exception
MethodCallUnmarshaller
RpcCall
instance from an InputStream
.
Implementations are responsible for determining the stream's character encoding (where applicable).
unmarshal
in interface MethodCallUnmarshaller
in
- The InputStream
from which to unmarshal a new
RpcCall
instance.aid
- A MethodCallUnmarshallerAid
providing the mapping between
method parameters when unmarshalling structs. May be
null
, in which case Map
instances will
be used in all cases. May also override the default
FieldNameCodec
.
java.lang.Exception
- Implementations are free to throw exceptions.protected RpcCall unmarshal(org.xml.sax.InputSource in, MethodCallUnmarshallerAid aid) throws java.lang.Exception
java.lang.Exception
public RpcCall unmarshal(java.io.Reader in, MethodCallUnmarshallerAid aid) throws java.lang.Exception
MethodCallUnmarshaller
RpcCall
instance from a Reader
.
unmarshal
in interface MethodCallUnmarshaller
in
- The Reader
from which to unmarshal a new
RpcCall
instance.aid
- A MethodCallUnmarshallerAid
providing the mapping between
method parameters when unmarshalling structs. May be
null
, in which case Map
instances will
be used in all cases. May also override the default
FieldNameCodec
.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.lang.String xml, MethodCallUnmarshallerAid aid) throws java.lang.Exception
MethodCallUnmarshaller
RpcCall
instance from an XML string.
unmarshal
in interface MethodCallUnmarshaller
xml
- The XML string from which to unmarshal a new
RpcCall
instance.aid
- A MethodCallUnmarshallerAid
providing the mapping between
method parameters when unmarshalling structs. May be
null
, in which case Map
instances will
be used in all cases. May also override the default
FieldNameCodec
.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.io.InputStream in) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from an InputStream
.
Implementations are responsible for determining the stream's character encoding (where applicable).
unmarshal
in interface ExtendedMethodCallUnmarshaller
in
- The InputStream
from which to unmarshal a new
RpcCall
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.io.InputStream in, java.lang.Class[] structClasses) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from an InputStream
.
Implementations are responsible for determining the stream's character encoding (where applicable).
unmarshal
in interface ExtendedMethodCallUnmarshaller
in
- The InputStream
from which to unmarshal a new
RpcCall
instance.structClasses
- A list of classes to unmarshal parameters into if said parameters
are structs. May be null
, in which case
Map
instances will be used in all cases. Parameters are
indexed into this array based on their position. If this index
exceeds the length of this array, or if the indexed element is
null
a Map
instance will be used.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.io.Reader in) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from a Reader
.
unmarshal
in interface ExtendedMethodCallUnmarshaller
in
- The Reader
from which to unmarshal a new
RpcCall
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.io.Reader in, java.lang.Class[] structClasses) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from a Reader
.
unmarshal
in interface ExtendedMethodCallUnmarshaller
in
- The Reader
from which to unmarshal a new
RpcCall
instance.structClasses
- A list of classes to unmarshal parameters into if said parameters
are structs. May be null
, in which case
Map
instances will be used in all cases. Parameters are
indexed into this array based on their position. If this index
exceeds the length of this array, or if the indexed element is
null
a Map
instance will be used.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.lang.String xml) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from an XML string.
unmarshal
in interface ExtendedMethodCallUnmarshaller
xml
- The XML string from which to unmarshal a new
RpcCall
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcCall unmarshal(java.lang.String xml, java.lang.Class[] structClasses) throws java.lang.Exception
ExtendedMethodCallUnmarshaller
RpcCall
instance from an XML string.
unmarshal
in interface ExtendedMethodCallUnmarshaller
xml
- The XML string from which to unmarshal a new
RpcCall
instance.structClasses
- A list of classes to unmarshal parameters into if said parameters
are structs. May be null
, in which case
Map
instances will be used in all cases. Parameters are
indexed into this array based on their position. If this index
exceeds the length of this array, or if the indexed element is
null
a Map
instance will be used.
java.lang.Exception
- Implementations are free to throw exceptions.public FieldNameCodec getDefaultFieldNameCodec()
MethodUnmarshaller
FieldNameCodec
exists.
For client implementations this typically means no codec has been set on the client.
For server implementations this typically means
UnmarshallerAid.getFieldNameCodec(String)
has returned null
.
getDefaultFieldNameCodec
in interface MethodUnmarshaller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |