marquee.xmlrpc.connections
Class URLConnectionFactory

java.lang.Object
  extended by marquee.xmlrpc.connections.URLConnectionFactory
All Implemented Interfaces:
XmlRpcClientConnectionFactory

public class URLConnectionFactory
extends java.lang.Object
implements XmlRpcClientConnectionFactory

A factory for connections that use the java.net.URL infrastructure. These connections are useful in an applet because any proxy and security settings in the browser are used.

Version:
$Revision: 1.1 $
Author:
Toby Allsopp

Constructor Summary
URLConnectionFactory(java.net.URL url)
          Initializes the factory to create connections to the XML-RPC server at the specified URL.
 
Method Summary
 XmlRpcClientConnection createConnection()
          Creates a new connection to the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLConnectionFactory

public URLConnectionFactory(java.net.URL url)
Initializes the factory to create connections to the XML-RPC server at the specified URL.

Method Detail

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.