|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.service.SimpleSOAPCallFactory
A simple thread-safe implementation of the SOAPCallFactory
interface. Synchronization takes place when default properties are added and
when properties are set for a new SOAPCall object.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement. |
private java.util.Map |
mSoapProperties
Properties to apply to all SOAP calls. |
private int |
mTimeout
Timeout to use for SOAP calls. |
| Constructor Summary | |
|
SimpleSOAPCallFactory()
Constructs a new SimpleSOAPCallFactory. |
private |
SimpleSOAPCallFactory(int timeout,
java.util.Map properties)
|
| Method Summary | |
java.lang.Object |
clone()
Creates a new SOAPCallFactory that inherits the default
settings from this factory. |
SOAPCall |
createSOAPCall()
Creates and returns a new SOAPCall object. |
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. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private int mTimeout
private final java.util.Map mSoapProperties
| Constructor Detail |
public SimpleSOAPCallFactory()
SimpleSOAPCallFactory.
private SimpleSOAPCallFactory(int timeout,
java.util.Map properties)
| Method Detail |
public SOAPCall createSOAPCall()
SOAPCall object. If a
timeout has been specified the timeout of the underlying Axis
call object is set with this timeout.
createSOAPCall in interface SOAPCallFactorySOAPCall object.
public void setDefaultProperty(java.lang.String name,
java.lang.Object value)
SOAPCallFactorySOAPCall
objects that are created subsequently.
setDefaultProperty in interface SOAPCallFactoryname - property namevalue - property valuepublic void setDefaultTimeout(int duration)
SOAPCallFactorySOAPCall objects that
are created subsequently.
setDefaultTimeout in interface SOAPCallFactoryduration - timeout duration in milliseconds. A value of less than zero
can be specified to prevent the factory from setting the
timeout.public java.lang.Object clone()
SOAPCallFactorySOAPCallFactory that inherits the default
settings from this factory.
clone in interface SOAPCallFactoryclone in class java.lang.ObjectSOAPCallFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||