public class SocketConnectionFactory extends java.lang.Object implements XmlRpcClientConnectionFactory
java.net.URL
implementation.Constructor and Description |
---|
SocketConnectionFactory(java.lang.String host,
int port,
java.lang.String path)
Initializes the factory to create connections to the XML-RPC server at the given host,
on the given port and path.
|
Modifier and Type | Method and Description |
---|---|
XmlRpcClientConnection |
createConnection()
Creates a new connection to the server.
|
public SocketConnectionFactory(java.lang.String host, int port, java.lang.String path)
host
- The XML-RPC host (IP address or host name).port
- The port the host is accepting connections on.path
- The path to the service (e.g. "/RPC2").public XmlRpcClientConnection createConnection() throws java.io.IOException
XmlRpcClientConnectionFactory
createConnection
in interface XmlRpcClientConnectionFactory
XmlRpcClientConnection
java.io.IOException
- if an IO Error occures.