org.echarts.servlet.sip.utilities
Class FileBasedProvisioning
java.lang.Object
org.echarts.servlet.sip.SipToJava
org.echarts.servlet.sip.EChartsMachineToJava
org.echarts.servlet.sip.utilities.FileBasedProvisioning
public abstract class FileBasedProvisioning
- extends EChartsMachineToJava
Class providing support for access to provisioned data stored in the filesystem.
The file can be specified via JVM parameter
org.echarts.servlet.sip.provisioning.filename, and defaults
to "provisioning.properties" in the working directory.
Method Summary |
java.lang.String |
getParameter(java.lang.String paramName)
Gets the value of specified parameter as specified in provisioning file. |
java.lang.String |
getParameter(java.lang.String paramName,
java.lang.String defaultValue)
Gets the value of specified parameter as specified in provisioning file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROVISIONING_PROPERTIES_FILENAME
public static final java.lang.String PROVISIONING_PROPERTIES_FILENAME
- See Also:
- Constant Field Values
FileBasedProvisioning
public FileBasedProvisioning()
throws java.io.IOException,
java.io.FileNotFoundException
- Throws:
java.io.IOException
java.io.FileNotFoundException
getParameter
public java.lang.String getParameter(java.lang.String paramName)
- Gets the value of specified parameter as specified in provisioning file.
- Parameters:
paramName
- name of desired parameter
- Returns:
- value of desired parameter, or null if not present
getParameter
public java.lang.String getParameter(java.lang.String paramName,
java.lang.String defaultValue)
- Gets the value of specified parameter as specified in provisioning file.
- Parameters:
paramName
- name of desired parameterdefaultValue
- default value to use if parameter is not present in file
- Returns:
- value of desired parameter, or defaultValue if not present