org.apache.xmlrpc.test
Interface ClientProvider

All Known Implementing Classes:
ClientProviderImpl, CommonsProvider, LiteTransportProvider, LocalStreamTransportProvider, LocalTransportProvider, ServletWebServerProvider, SunHttpTransportProvider, WebServerProvider

public interface ClientProvider

This interface allows to perform a unit test with various transports. Basically, the implementation creates the client, including the transport, and the server, if required.


Method Summary
 org.apache.xmlrpc.client.XmlRpcClient getClient()
          Returns a new client instance.
 org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
          Returns the clients default configuration.
 org.apache.xmlrpc.server.XmlRpcServer getServer()
          Returns the providers server instance.
 void shutdown()
          Performs a shutdown of the server.
 

Method Detail

getConfig

org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
                                                          throws java.lang.Exception
Returns the clients default configuration.

Returns:
The clients configuration.
Throws:
java.lang.Exception - Creating the configuration failed.

getClient

org.apache.xmlrpc.client.XmlRpcClient getClient()
Returns a new client instance.

Returns:
A client being used for performing the test.

getServer

org.apache.xmlrpc.server.XmlRpcServer getServer()
Returns the providers server instance.

Returns:
A server instance, which is being used for performing the test.

shutdown

void shutdown()
Performs a shutdown of the server.



Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.