| 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 SampXmlRpcClientFactory implementation. |
| 10 |
* This implementation requires no external libraries. |
| 11 |
* |
| 12 |
* @author Mark Taylor |
| 13 |
* @since 16 Sep 2008 |
| 14 |
*/ |
| 15 |
public class InternalClientFactory implements SampXmlRpcClientFactory { |
| 16 |
public SampXmlRpcClient createClient( URL endpoint ) throws IOException { |
| 17 |
return new InternalClient( endpoint ); |
| 18 |
} |
| 19 |
} |