Package org.apache.wsil.util
Class WSILProperties
java.lang.Object
org.apache.wsil.util.WSILProperties
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
FieldsModifier and TypeFieldDescriptionprotected static final String
Default WSILDocumentFactory class name.protected static final String
Property that contains WSILDocumentFactory class name.protected static final String
Property file name.static final String
static final String
static final String
static final String
protected static Properties
Properties object.static String
Tranport class.static final String
WSDL extension.static String
WSIL inspection document name.static String
WSIL hostname.static String
WSIL port. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Get the WSIL document factory class name.static Properties
Get properties that were set for this thread only.static void
static void
This method is used to unit test this class.static void
setProperties
(Properties props) Set properties for this thread only.
-
Field Details
-
props
Properties object. -
DEF_DOCUMENT_FACTORY
Default WSILDocumentFactory class name.- See Also:
-
PROP_DOCUMENT_FACTORY
Property that contains WSILDocumentFactory class name.- See Also:
-
PROP_FILENAME
Property file name.- See Also:
-
WSDL_EXTENSION
WSDL extension.- See Also:
-
TRANSPORT_CLASS
Tranport class. -
PROP_TRANSPORT_CLASS
- See Also:
-
WSIL_HOSTNAME
WSIL hostname. -
PROP_WSIL_HOSTNAME
- See Also:
-
WSIL_PORT
WSIL port. -
PROP_WSIL_PORT
- See Also:
-
WSIL_DOCUMENT_NAME
WSIL inspection document name. -
PROP_WSIL_DOCUMENT_NAME
- See Also:
-
-
Method Details
-
loadProperties
public static void loadProperties() -
getProperties
Get properties that were set for this thread only. -
setProperties
Set properties for this thread only. -
getDocumentFactory
Get the WSIL document factory class name. -
main
This method is used to unit test this class.
-