Package org.apache.wsil.util
Class WSILProperties
- java.lang.Object
-
- org.apache.wsil.util.WSILProperties
-
public final class WSILProperties extends java.lang.ObjectThe 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
Fields Modifier and Type Field Description protected static java.lang.StringDEF_DOCUMENT_FACTORYDefault WSILDocumentFactory class name.protected static java.lang.StringPROP_DOCUMENT_FACTORYProperty that contains WSILDocumentFactory class name.protected static java.lang.StringPROP_FILENAMEProperty file name.static java.lang.StringPROP_TRANSPORT_CLASSstatic java.lang.StringPROP_WSIL_DOCUMENT_NAMEstatic java.lang.StringPROP_WSIL_HOSTNAMEstatic java.lang.StringPROP_WSIL_PORTprotected static java.util.PropertiespropsProperties object.static java.lang.StringTRANSPORT_CLASSTranport class.static java.lang.StringWSDL_EXTENSIONWSDL extension.static java.lang.StringWSIL_DOCUMENT_NAMEWSIL inspection document name.static java.lang.StringWSIL_HOSTNAMEWSIL hostname.static java.lang.StringWSIL_PORTWSIL port.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetDocumentFactory()Get the WSIL document factory class name.static java.util.PropertiesgetProperties()Get properties that were set for this thread only.static voidloadProperties()static voidmain(java.lang.String[] args)This method is used to unit test this class.static voidsetProperties(java.util.Properties props)Set properties for this thread only.
-
-
-
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.
-
-