ca.bc.gov.webade.developer.util
Class ConfigurationUtils

java.lang.Object
  extended byca.bc.gov.webade.developer.util.ConfigurationUtils

public final class ConfigurationUtils
extends java.lang.Object

Helper class for dealing with the Configuration.

Author:
Vivid Solutions Inc

Constructor Summary
ConfigurationUtils()
           
 
Method Summary
static java.lang.String findProperty(javax.servlet.FilterConfig filterConfig, java.lang.String property)
          Check first in system properties them in filterConfig for property value.
static java.lang.String findProperty(javax.servlet.ServletContext context, java.lang.String property)
          Check first in system properties them in servlet context for property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationUtils

public ConfigurationUtils()
Method Detail

findProperty

public static java.lang.String findProperty(javax.servlet.ServletContext context,
                                            java.lang.String property)
Check first in system properties them in servlet context for property value.

Parameters:
context - The servlet context.
property - The property we are looking for.
Returns:
The value of the property or null if not found.

findProperty

public static java.lang.String findProperty(javax.servlet.FilterConfig filterConfig,
                                            java.lang.String property)
Check first in system properties them in filterConfig for property value.

Parameters:
filterConfig - The servlet filter config.
property - The property we are looking for.
Returns:
The value of the property or null if not found.