org.apache.wsil.util
Class WSILProperties

java.lang.Object
  extended by org.apache.wsil.util.WSILProperties

public final class WSILProperties
extends java.lang.Object

The WS-Inspection properties can be defined in one of three locations. 1. The wsil.properties file which can be located anywhere in the classpath. 2. The system property settings. 3. The thread local property settings. The properties are set based on this ordering. For example, the properties from the wsil.properties file will be replaced by properties from the system property settings, which will be replaced by the thread local property settings. The properties that are used to define the implementation classes can be specified as system properties or as properties that are set in a thread local variable. System properties should be used if only one implementation is needed per JVM. If two or more implementations are needed per JVM, then the properties should be set using the thread local variable.

Version:
1.0

Field Summary
protected static java.lang.String DEF_DOCUMENT_FACTORY
          Default WSILDocumentFactory class name.
protected static java.lang.String PROP_DOCUMENT_FACTORY
          Property that contains WSILDocumentFactory class name.
protected static java.lang.String PROP_FILENAME
          Property file name.
static java.lang.String PROP_TRANSPORT_CLASS
           
static java.lang.String PROP_WSIL_DOCUMENT_NAME
           
static java.lang.String PROP_WSIL_HOSTNAME
           
static java.lang.String PROP_WSIL_PORT
           
protected static java.util.Properties props
          Properties object.
static java.lang.String TRANSPORT_CLASS
          Tranport class.
static java.lang.String WSDL_EXTENSION
          WSDL extension.
static java.lang.String WSIL_DOCUMENT_NAME
          WSIL inspection document name.
static java.lang.String WSIL_HOSTNAME
          WSIL hostname.
static java.lang.String WSIL_PORT
          WSIL port.
 
Method Summary
static java.lang.String getDocumentFactory()
          Get the WSIL document factory class name.
static java.util.Properties getProperties()
          Get properties that were set for this thread only.
static void loadProperties()
           
static void main(java.lang.String[] args)
          This method is used to unit test this class.
static void setProperties(java.util.Properties props)
          Set properties for this thread only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

props

protected static java.util.Properties props
Properties object.


DEF_DOCUMENT_FACTORY

protected static final java.lang.String DEF_DOCUMENT_FACTORY
Default WSILDocumentFactory class name.

See Also:
Constant Field Values

PROP_DOCUMENT_FACTORY

protected static final java.lang.String PROP_DOCUMENT_FACTORY
Property that contains WSILDocumentFactory class name.

See Also:
Constant Field Values

PROP_FILENAME

protected static final java.lang.String PROP_FILENAME
Property file name.

See Also:
Constant Field Values

WSDL_EXTENSION

public static final java.lang.String WSDL_EXTENSION
WSDL extension.

See Also:
Constant Field Values

TRANSPORT_CLASS

public static java.lang.String TRANSPORT_CLASS
Tranport class.


PROP_TRANSPORT_CLASS

public static final java.lang.String PROP_TRANSPORT_CLASS
See Also:
Constant Field Values

WSIL_HOSTNAME

public static java.lang.String WSIL_HOSTNAME
WSIL hostname.


PROP_WSIL_HOSTNAME

public static final java.lang.String PROP_WSIL_HOSTNAME
See Also:
Constant Field Values

WSIL_PORT

public static java.lang.String WSIL_PORT
WSIL port.


PROP_WSIL_PORT

public static final java.lang.String PROP_WSIL_PORT
See Also:
Constant Field Values

WSIL_DOCUMENT_NAME

public static java.lang.String WSIL_DOCUMENT_NAME
WSIL inspection document name.


PROP_WSIL_DOCUMENT_NAME

public static final java.lang.String PROP_WSIL_DOCUMENT_NAME
See Also:
Constant Field Values
Method Detail

loadProperties

public static void loadProperties()

getProperties

public static java.util.Properties getProperties()
Get properties that were set for this thread only.


setProperties

public static void setProperties(java.util.Properties props)
Set properties for this thread only.


getDocumentFactory

public static java.lang.String getDocumentFactory()
Get the WSIL document factory class name.


main

public static void main(java.lang.String[] args)
This method is used to unit test this class.



Copyright ? 2001 International Business Machines Corporation. All Rights Reserved.