| 1 |
package org.astrogrid.samp.xmlrpc.internal; |
| 2 |
|
| 3 |
import java.io.IOException; |
| 4 |
import java.net.URL; |
| 5 |
import org.astrogrid.samp.xmlrpc.SampXmlRpcClient; |
| 6 |
import org.astrogrid.samp.xmlrpc.SampXmlRpcClientFactory; |
| 7 |
|
| 8 |
/** |
| 9 |
* Freestanding ClientFactory implementation which logs all XML-RPC |
| 10 |
* calls/responses to standard output. |
| 11 |
* |
| 12 |
* @author Mark Taylor |
| 13 |
* @since 2 Dec 2008 |
| 14 |
*/ |
| 15 |
public class RpcLoggingInternalClientFactory |
| 16 |
implements SampXmlRpcClientFactory { |
| 17 |
public SampXmlRpcClient createClient( URL endpoint ) throws IOException { |
| 18 |
return new RpcLoggingInternalClient( endpoint, System.out ); |
| 19 |
} |
| 20 |
} |