marquee.xmlrpc.connections
Class SocketConnectionFactory
java.lang.Object
marquee.xmlrpc.connections.SocketConnectionFactory
- All Implemented Interfaces:
- XmlRpcClientConnectionFactory
- public class SocketConnectionFactory
- extends java.lang.Object
- implements XmlRpcClientConnectionFactory
A factory for raw socket connections. HTTP is implemented directly
on the saocket in order to avoid the overhead of the full
java.net.URL
implementation.
- Version:
- $Revision: 1.2 $
- Author:
- Toby Allsopp, Greger Ohlson
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketConnectionFactory
public 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.
- Parameters:
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").
createConnection
public XmlRpcClientConnection createConnection()
throws java.io.IOException
- Description copied from interface:
XmlRpcClientConnectionFactory
- Creates a new connection to the server. The location of the
server is determined by the arguments passed to the constructor
of an implementing class.
- Specified by:
createConnection
in interface XmlRpcClientConnectionFactory
- Returns:
- a new
XmlRpcClientConnection
- Throws:
java.io.IOException
- if an IO Error occures.