org.apache.xmlrpc.test
Class WebServerProvider

java.lang.Object
  extended by org.apache.xmlrpc.test.ClientProviderImpl
      extended by org.apache.xmlrpc.test.WebServerProvider
All Implemented Interfaces:
ClientProvider
Direct Known Subclasses:
CommonsProvider, LiteTransportProvider, SunHttpTransportProvider

public abstract class WebServerProvider
extends ClientProviderImpl

Abstract base class for providers, which require a webserver.


Field Summary
protected  org.apache.xmlrpc.webserver.WebServer webServer
           
 
Fields inherited from class org.apache.xmlrpc.test.ClientProviderImpl
mapping
 
Constructor Summary
protected WebServerProvider(org.apache.xmlrpc.server.XmlRpcHandlerMapping pMapping, boolean pContentLength)
          Creates a new instance.
 
Method Summary
 org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
          Returns the clients default configuration.
protected  org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig(java.net.URL pServerURL)
           
 org.apache.xmlrpc.server.XmlRpcServer getServer()
          Returns the providers server instance.
protected  void initWebServer()
           
 void shutdown()
          Performs a shutdown of the server.
 
Methods inherited from class org.apache.xmlrpc.test.ClientProviderImpl
getClient, getTransportFactory, getXmlRpcServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webServer

protected final org.apache.xmlrpc.webserver.WebServer webServer
Constructor Detail

WebServerProvider

protected WebServerProvider(org.apache.xmlrpc.server.XmlRpcHandlerMapping pMapping,
                            boolean pContentLength)
Creates a new instance.

Parameters:
pMapping - The test servers handler mapping.
Method Detail

getConfig

public final org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
                                                                throws java.lang.Exception
Description copied from interface: ClientProvider
Returns the clients default configuration.

Specified by:
getConfig in interface ClientProvider
Overrides:
getConfig in class ClientProviderImpl
Returns:
The clients configuration.
Throws:
java.lang.Exception - Creating the configuration failed.

getConfig

protected org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig(java.net.URL pServerURL)
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

initWebServer

protected void initWebServer()
                      throws java.lang.Exception
Throws:
java.lang.Exception

getServer

public org.apache.xmlrpc.server.XmlRpcServer getServer()
Description copied from interface: ClientProvider
Returns the providers server instance.

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

shutdown

public void shutdown()
Description copied from interface: ClientProvider
Performs a shutdown of the server.



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