org.echarts.servlet.sip.utilities
Class FileBasedProvisioning

java.lang.Object
  extended by org.echarts.servlet.sip.SipToJava
      extended by org.echarts.servlet.sip.EChartsMachineToJava
          extended by 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.


Field Summary
static java.lang.String PROVISIONING_PROPERTIES_FILENAME
           
 
Constructor Summary
FileBasedProvisioning()
           
 
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 org.echarts.servlet.sip.EChartsMachineToJava
getInstance, getSipApplicationSessionId, init, publish, putEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROVISIONING_PROPERTIES_FILENAME

public static final java.lang.String PROVISIONING_PROPERTIES_FILENAME
See Also:
Constant Field Values
Constructor Detail

FileBasedProvisioning

public FileBasedProvisioning()
                      throws java.io.IOException,
                             java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException
Method Detail

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 parameter
defaultValue - default value to use if parameter is not present in file
Returns:
value of desired parameter, or defaultValue if not present