Class RpcLoggingInternalClient
java.lang.Object
org.astrogrid.samp.xmlrpc.internal.InternalClient
org.astrogrid.samp.xmlrpc.internal.RpcLoggingInternalClient
- 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 ObjectDeserializes an XML-RPCmethodResponsedocument to a Java object.protected byte[]serializeCall(String method, List paramList) Generates the XMLmethodCalldocument corresponding to an XML-RPC method call.Methods inherited from class org.astrogrid.samp.xmlrpc.internal.InternalClient
callAndForget, callAndWait
-
Constructor Details
-
RpcLoggingInternalClient
Constructor.- Parameters:
endpoint- endpointout- logging output stream
-
-
Method Details
-
serializeCall
Description copied from class:InternalClientGenerates the XMLmethodCalldocument corresponding to an XML-RPC method call.- Overrides:
serializeCallin classInternalClient- Parameters:
method- methodName stringparamList- list of XML-RPC parameters- Returns:
- XML document as byte array
- Throws:
IOException
-
deserializeResponse
Description copied from class:InternalClientDeserializes an XML-RPCmethodResponsedocument to a Java object.- Overrides:
deserializeResponsein classInternalClient- Parameters:
in- input stream containing response document- Throws:
IOException
-