|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.flat502.rox.marshal.xmlrpc.SaxMethodResponseUnmarshaller
public class SaxMethodResponseUnmarshaller
Parse XML RPC method response using SAX.
Constructor Summary | |
---|---|
SaxMethodResponseUnmarshaller()
|
|
SaxMethodResponseUnmarshaller(SaxParserPool pool)
|
Method Summary | |
---|---|
protected RpcResponse |
buildXmlRpcResponse(SaxUnmarshaller unmarshaller)
|
FieldNameCodec |
getDefaultFieldNameCodec()
This method is invoked when no specific FieldNameCodec exists. |
protected RpcResponse |
unmarshal(org.xml.sax.InputSource in,
MethodResponseUnmarshallerAid aid)
|
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 SaxMethodResponseUnmarshaller(SaxParserPool pool)
public SaxMethodResponseUnmarshaller()
Method Detail |
---|
protected RpcResponse buildXmlRpcResponse(SaxUnmarshaller unmarshaller)
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.protected RpcResponse unmarshal(org.xml.sax.InputSource in, MethodResponseUnmarshallerAid aid) throws java.lang.Exception
java.lang.Exception
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, 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.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.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.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 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 |