Class WSILProperties

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

public final class WSILProperties extends 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 Details

    • props

      protected static Properties props
      Properties object.
    • DEF_DOCUMENT_FACTORY

      protected static final String DEF_DOCUMENT_FACTORY
      Default WSILDocumentFactory class name.
      See Also:
    • PROP_DOCUMENT_FACTORY

      protected static final String PROP_DOCUMENT_FACTORY
      Property that contains WSILDocumentFactory class name.
      See Also:
    • PROP_FILENAME

      protected static final String PROP_FILENAME
      Property file name.
      See Also:
    • WSDL_EXTENSION

      public static final String WSDL_EXTENSION
      WSDL extension.
      See Also:
    • TRANSPORT_CLASS

      public static String TRANSPORT_CLASS
      Tranport class.
    • PROP_TRANSPORT_CLASS

      public static final String PROP_TRANSPORT_CLASS
      See Also:
    • WSIL_HOSTNAME

      public static String WSIL_HOSTNAME
      WSIL hostname.
    • PROP_WSIL_HOSTNAME

      public static final String PROP_WSIL_HOSTNAME
      See Also:
    • WSIL_PORT

      public static String WSIL_PORT
      WSIL port.
    • PROP_WSIL_PORT

      public static final String PROP_WSIL_PORT
      See Also:
    • WSIL_DOCUMENT_NAME

      public static String WSIL_DOCUMENT_NAME
      WSIL inspection document name.
    • PROP_WSIL_DOCUMENT_NAME

      public static final String PROP_WSIL_DOCUMENT_NAME
      See Also:
  • Method Details

    • loadProperties

      public static void loadProperties()
    • getProperties

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

      public static void setProperties(Properties props)
      Set properties for this thread only.
    • getDocumentFactory

      public static String getDocumentFactory()
      Get the WSIL document factory class name.
    • main

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