Class XmlLoggingInternalClient
java.lang.Object
org.astrogrid.samp.xmlrpc.internal.InternalClient
org.astrogrid.samp.xmlrpc.internal.XmlLoggingInternalClient
- All Implemented Interfaces:
SampXmlRpcClient
InternalClient subclass which additionally logs all XML-RPC calls/responses
to an output stream.
- Since:
- 2 Dec 2008
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Deserializes an XML-RPCmethodResponse
document to a Java object.protected byte[]
serializeCall
(String method, List paramList) Generates the XMLmethodCall
document corresponding to an XML-RPC method call.Methods inherited from class org.astrogrid.samp.xmlrpc.internal.InternalClient
callAndForget, callAndWait
-
Constructor Details
-
XmlLoggingInternalClient
Constructor.- Parameters:
endpoint
- endpointout
- output stream for logging
-
-
Method Details
-
serializeCall
Description copied from class:InternalClient
Generates the XMLmethodCall
document corresponding to an XML-RPC method call.- Overrides:
serializeCall
in classInternalClient
- Parameters:
method
- methodName stringparamList
- list of XML-RPC parameters- Returns:
- XML document as byte array
- Throws:
IOException
-
deserializeResponse
Description copied from class:InternalClient
Deserializes an XML-RPCmethodResponse
document to a Java object.- Overrides:
deserializeResponse
in classInternalClient
- Parameters:
in
- input stream containing response document- Throws:
IOException
-