uk.org.ogsadai.client.toolkit.wsrf
Class TimeoutProperty

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.ConnectionProperty
        |
        +--uk.org.ogsadai.client.toolkit.wsrf.TimeoutProperty

public final class TimeoutProperty
extends ConnectionProperty

The timeout property used to configure the timeout value of a service. The timeout value is the duration that the client will wait for a response from a web service before reporting an error.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
SECURITY, TIMEOUT
 
Constructor Summary
TimeoutProperty(int duration)
          Constructor.
 
Method Summary
 void configureStub(Stub stub)
           
 int getTimeout()
          Gets the timeout value in milliseconds.
 java.lang.String toString()
          Returns a brief description of this timeout propery.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeoutProperty

public TimeoutProperty(int duration)
Constructor.

Parameters:
duration - Duration to wait in milliseconds.
Method Detail

getTimeout

public int getTimeout()
Gets the timeout value in milliseconds.

Returns:
Timeout value in milliseconds.

toString

public java.lang.String toString()
Returns a brief description of this timeout propery. The exact details of this are unspecified and subject to change but the following may be regarded as typical:
"[TimeoutProperty: duration=1000ms]" return brief description of the timeout property.

Overrides:
toString in class java.lang.Object

configureStub

public void configureStub(Stub stub)
Specified by:
configureStub in class ConnectionProperty