cmu.survey.data
Class WebappConfiguration

java.lang.Object
  extended by cmu.survey.data.WebappConfiguration
All Implemented Interfaces:
HasKeyValues

public class WebappConfiguration
extends java.lang.Object
implements HasKeyValues


Nested Class Summary
static class WebappConfiguration.WebappError
           
static class WebappConfiguration.WebappNeedsToBeRestartedError
           
static class WebappConfiguration.WebappNotConfiguredError
           
 
Field Summary
static java.lang.String DebuggingFileLocation
           
 
Method Summary
 java.lang.String getDatabaseString()
           
 java.lang.String getDatabaseStringDatabaseOnly()
           
 java.lang.String getDatabaseStringForDatabase(java.lang.String databaseName)
           
 java.lang.String getDatabaseStringHostnameOnly()
           
 java.lang.String getDatabaseStringNoDatabase()
           
 java.lang.String getValue(java.lang.String property)
           
static WebappConfiguration getWebappConfiguration(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DebuggingFileLocation

public static final java.lang.String DebuggingFileLocation
See Also:
Constant Field Values
Method Detail

getValue

public java.lang.String getValue(java.lang.String property)
Specified by:
getValue in interface HasKeyValues

getWebappConfiguration

public static WebappConfiguration getWebappConfiguration(javax.servlet.ServletContext servletContext)
                                                  throws WebappConfiguration.WebappError
Throws:
WebappConfiguration.WebappError

getDatabaseString

public java.lang.String getDatabaseString()

getDatabaseStringHostnameOnly

public java.lang.String getDatabaseStringHostnameOnly()

getDatabaseStringDatabaseOnly

public java.lang.String getDatabaseStringDatabaseOnly()

getDatabaseStringNoDatabase

public java.lang.String getDatabaseStringNoDatabase()

getDatabaseStringForDatabase

public java.lang.String getDatabaseStringForDatabase(java.lang.String databaseName)