|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.ConnectionProperty | +--uk.org.ogsadai.client.toolkit.TimeoutProperty
The timeout property used to configure the timeout of a
client-service connection. The timeout value is the duration that
the client will wait for a response from a web service before
reporting an error.
OGSA-DAI timeout properties have name
{http://ogsadai.org.uk/namespaces/2005/10/}timeout
.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private int |
mDuration
Timeout duration in milliseconds |
static javax.xml.namespace.QName |
TIMEOUT
Default name of OGSA-DAI connection property for connection timeout |
Fields inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty |
CONNECTION_PROPERTY_NS |
Constructor Summary | |
TimeoutProperty(int duration)
Creates a timeout connection property. |
Method Summary | |
void |
configureCallFactory(SOAPCallFactory factory)
Configures a SOAPCallFactory to apply this connection
property to any subsequent calls that are made. |
int |
getTimeout()
Gets the timeout value in milliseconds. |
java.lang.String |
toString()
Returns a brief description of this timeout property. |
Methods inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty |
getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
public static final javax.xml.namespace.QName TIMEOUT
private int mDuration
Constructor Detail |
public TimeoutProperty(int duration)
duration
- Duration to wait in milliseconds.Method Detail |
public int getTimeout()
public java.lang.String toString()
The exact details of this are subject to change but at present
the format is
"[TimeoutProperty: duration=1000ms]"
return brief description of the timeout property.
toString
in class java.lang.Object
public void configureCallFactory(SOAPCallFactory factory)
ConnectionProperty
SOAPCallFactory
to apply this connection
property to any subsequent calls that are made.
configureCallFactory
in class ConnectionProperty
factory
- factory used for creating SOAP calls that this connection property
will be applied to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |