|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.xmlrpc.DomMethodResponseUnmarshaller
public class DomMethodResponseUnmarshaller
A DOM basedMethodResponseUnmarshaller
implementation.
Constructor Summary | |
---|---|
DomMethodResponseUnmarshaller()
|
|
DomMethodResponseUnmarshaller(FieldNameCodec fieldNameCodec)
|
Method Summary | |
---|---|
FieldNameCodec |
getDefaultFieldNameCodec()
This method is invoked when no specific FieldNameCodec exists. |
RpcResponse |
unmarshal(java.io.InputStream in)
Unmarshal an RpcResponse instance from an InputStream . |
RpcResponse |
unmarshal(java.io.InputStream in,
MethodResponseUnmarshallerAid aid)
Unmarshal an RpcResponse instance from an InputStream . |
RpcResponse |
unmarshal(java.io.Reader in)
Unmarshal an RpcResponse instance from a Reader . |
RpcResponse |
unmarshal(java.io.Reader in,
MethodResponseUnmarshallerAid aid)
Unmarshal an RpcResponse instance from a Reader . |
RpcResponse |
unmarshal(java.lang.String xml)
Unmarshal an RpcResponse instance from an XML string. |
RpcResponse |
unmarshal(java.lang.String xml,
MethodResponseUnmarshallerAid aid)
Unmarshal an RpcResponse 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 DomMethodResponseUnmarshaller()
public DomMethodResponseUnmarshaller(FieldNameCodec fieldNameCodec)
Method Detail |
---|
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
public RpcResponse unmarshal(java.io.InputStream in) throws java.lang.Exception
ExtendedMethodResponseUnmarshaller
RpcResponse
instance from an InputStream
.
Implementations are responsible for determining the stream's character encoding (where applicable).
unmarshal
in interface ExtendedMethodResponseUnmarshaller
in
- The InputStream
from which to unmarshal a new
RpcResponse
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcResponse unmarshal(java.io.InputStream in, MethodResponseUnmarshallerAid aid) throws java.lang.Exception
MethodResponseUnmarshaller
RpcResponse
instance from an InputStream
.
Implementations are responsible for determining the stream's character encoding (where applicable).
unmarshal
in interface MethodResponseUnmarshaller
in
- The InputStream
from which to unmarshal a new
RpcResponse
instance.aid
- The MethodResponseUnmarshallerAid
to use when unmarshalling
the response. May be null
, in which internal defaults
will be used
java.lang.Exception
- Implementations are free to throw exceptions.public RpcResponse unmarshal(java.io.Reader in) throws java.lang.Exception
ExtendedMethodResponseUnmarshaller
RpcResponse
instance from a Reader
.
unmarshal
in interface ExtendedMethodResponseUnmarshaller
in
- The Reader
from which to unmarshal a new
RpcResponse
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcResponse unmarshal(java.io.Reader in, MethodResponseUnmarshallerAid aid) throws java.lang.Exception
MethodResponseUnmarshaller
RpcResponse
instance from a Reader
.
unmarshal
in interface MethodResponseUnmarshaller
in
- The Reader
from which to unmarshal a new
RpcResponse
instance.aid
- The MethodResponseUnmarshallerAid
to use when unmarshalling
the response. May be null
, in which internal defaults
will be used
java.lang.Exception
- Implementations are free to throw exceptions.public RpcResponse unmarshal(java.lang.String xml) throws java.lang.Exception
ExtendedMethodResponseUnmarshaller
RpcResponse
instance from an XML string.
unmarshal
in interface ExtendedMethodResponseUnmarshaller
xml
- The XML string from which to unmarshal a new
RpcResponse
instance.
java.lang.Exception
- Implementations are free to throw exceptions.public RpcResponse unmarshal(java.lang.String xml, MethodResponseUnmarshallerAid aid) throws java.lang.Exception
MethodResponseUnmarshaller
RpcResponse
instance from an XML string.
unmarshal
in interface MethodResponseUnmarshaller
xml
- The XML string from which to unmarshal a new
RpcResponse
instance.aid
- The MethodResponseUnmarshallerAid
to use when unmarshalling
the response. May be null
, in which internal defaults
will be used
java.lang.Exception
- Implementations are free to throw exceptions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |