org.apache.wsif.util
Class WSIFProperties
java.lang.Object
|
+--org.apache.wsif.util.WSIFProperties
- public class WSIFProperties
- extends java.lang.Object
The WSIFProperties class contains various static methods to read
values from the wsif.properties file. Its main purpose is to prevent the
properties file from being read in from disk each time a property is checked.
- Author:
- Ant Elder
Method Summary |
static long |
getAsyncTimeout()
Reads the async request timeout value from the wsif.properties file. |
static java.lang.String |
getProperty(java.lang.String property)
Reads a property from the wsif.properties file. |
static long |
getSyncTimeout()
Reads the synchronous request timeout from the wsif.properties file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSIFProperties
public WSIFProperties()
getProperty
public static java.lang.String getProperty(java.lang.String property)
- Reads a property from the wsif.properties file.
- Parameters:
property
- the property to read- Returns:
- the value of ther property or null if the property is not defined
getAsyncTimeout
public static long getAsyncTimeout()
- Reads the async request timeout value from the wsif.properties file. This
property defines how long WSIF will keep a WSIFOperation stored in the
correlation service waiting for the reply to a WSIFOperation
executeRequestResponseAsync method call.
- Returns:
- the async request timeout value in milliseconds. If the property
is invalid or not defined in the properties file then a value of
zero is returned.
getSyncTimeout
public static long getSyncTimeout()
- Reads the synchronous request timeout from the wsif.properties file. This defines
how long (in milliseconds) WSIF will wait for a synchronous response.
Default of 0 means forever.
Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.