uk.org.ogsadai.client.toolkit.service
Interface SOAPCallFactory

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
SimpleSOAPCallFactory

public interface SOAPCallFactory
extends java.lang.Cloneable

A factory interface for creating SOAPCall objects. As well as the createSOAPCall() factory method, a number of other methods are defined for configuring the default properties and timeout for the SOAPCall objects that are created.

The interface also defines the public clone method which may be used to create a clone of a SOAPCallFactory with the same default settings at the time of cloning.

Author:
The OGSA-DAI Project Team

Method Summary
 java.lang.Object clone()
          Creates a new SOAPCallFactory that inherits the default settings from this factory.
 SOAPCall createSOAPCall()
          Creates a new SOAPCall object with default properties and timeout.
 void setDefaultProperty(java.lang.String name, java.lang.Object value)
          Sets a default property that will be applied to SOAPCall objects that are created subsequently.
 void setDefaultTimeout(int duration)
          Sets the default timeout value for SOAPCall objects that are created subsequently.
 

Method Detail

createSOAPCall

public SOAPCall createSOAPCall()
Creates a new SOAPCall object with default properties and timeout.

Returns:
a new SOAPCall ready for invocation

setDefaultProperty

public void setDefaultProperty(java.lang.String name,
                               java.lang.Object value)
Sets a default property that will be applied to SOAPCall objects that are created subsequently.

Parameters:
name - property name
value - property value

setDefaultTimeout

public void setDefaultTimeout(int duration)
Sets the default timeout value for SOAPCall objects that are created subsequently.

Parameters:
duration - timeout duration in milliseconds. A value of less than zero can be specified to prevent the factory from setting the timeout.

clone

public java.lang.Object clone()
Creates a new SOAPCallFactory that inherits the default settings from this factory.

Returns:
a new SOAPCallFactory