Class RpcLoggingInternalClient
- java.lang.Object
-
- org.astrogrid.samp.xmlrpc.internal.InternalClient
-
- org.astrogrid.samp.xmlrpc.internal.RpcLoggingInternalClient
-
- All Implemented Interfaces:
SampXmlRpcClient
public class RpcLoggingInternalClient extends InternalClient
InternalClient subclass which additionally logs all XML-RPC calls/responses to an output stream.- Since:
- 2 Dec 2008
- Author:
- Mark Taylor
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintStream
out_
-
Constructor Summary
Constructors Constructor Description RpcLoggingInternalClient(java.net.URL endpoint, java.io.PrintStream out)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
deserializeResponse(java.io.InputStream in)
Deserializes an XML-RPCmethodResponse
document to a Java object.protected byte[]
serializeCall(java.lang.String method, java.util.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
-
-
-
-
Method Detail
-
serializeCall
protected byte[] serializeCall(java.lang.String method, java.util.List paramList) throws java.io.IOException
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:
java.io.IOException
-
deserializeResponse
protected java.lang.Object deserializeResponse(java.io.InputStream in) throws java.io.IOException
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:
java.io.IOException
-
-