2.17.2: 2011-06-17

net.sf.basedb.ws.client
Class ConfigurableServiceFactory

java.lang.Object
  extended by net.sf.basedb.ws.client.ConfigurableServiceFactory
All Implemented Interfaces:
ServiceFactory

public class ConfigurableServiceFactory
extends Object
implements ServiceFactory

A service factory implementation that exposes the Options object.

Version:
2.8
Author:
nicklas
Last modified
$Date: 2008-09-11 22:06:36 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  org.apache.axis2.client.Options options
           
 
Constructor Summary
ConfigurableServiceFactory()
          Create a new service factory that uses the default options.
ConfigurableServiceFactory(org.apache.axis2.client.Options options)
          Create a new service factory that uses the given options.
 
Method Summary
 org.apache.axis2.rpc.client.RPCServiceClient createService(org.apache.axis2.addressing.EndpointReference target)
          Create a new RPCServiceClient object.
 org.apache.axis2.client.Options getOptions()
          Get the currently active options that are used by the createService(EndpointReference) method.
 void setOptions(org.apache.axis2.client.Options options)
          Set the options to use when creating new RPCServiceClient objects with createService(EndpointReference).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

private org.apache.axis2.client.Options options
Constructor Detail

ConfigurableServiceFactory

public ConfigurableServiceFactory()
Create a new service factory that uses the default options. Use setOptions(Options) to specify other options.


ConfigurableServiceFactory

public ConfigurableServiceFactory(org.apache.axis2.client.Options options)
Create a new service factory that uses the given options.

Method Detail

createService

public org.apache.axis2.rpc.client.RPCServiceClient createService(org.apache.axis2.addressing.EndpointReference target)
                                                           throws org.apache.axis2.AxisFault
Description copied from interface: ServiceFactory
Create a new RPCServiceClient object.

Specified by:
createService in interface ServiceFactory
Parameters:
target - The URL to the web service
Throws:
org.apache.axis2.AxisFault

setOptions

public void setOptions(org.apache.axis2.client.Options options)
Set the options to use when creating new RPCServiceClient objects with createService(EndpointReference).

Parameters:
options - The options, or null to use the default options

getOptions

public org.apache.axis2.client.Options getOptions()
Get the currently active options that are used by the createService(EndpointReference) method.

Returns:
The options, or null if no options have been specified

2.17.2: 2011-06-17