rewrite-integration-gwt 1.0.1.Final

org.ocpsoft.rewrite.servlet.util
Class ContextUtil

java.lang.Object
  extended by org.ocpsoft.rewrite.servlet.util.ContextUtil

public class ContextUtil
extends java.lang.Object

Utility method for easily interacting with the ServletContext

Author:
Lincoln Baxter, III

Constructor Summary
ContextUtil()
           
 
Method Summary
static java.lang.String getInitParam(javax.servlet.ServletContext context, java.lang.String name)
          Retrieve the named context-parameter from the given ServletContext.
static java.lang.String getInitParam(javax.servlet.ServletContext context, java.lang.String name, java.lang.String deflt)
          Retrieve the named context-parameter from the given ServletContext.
static boolean getInitParamBoolean(javax.servlet.ServletContext context, java.lang.String name)
          Retrieve the named context-parameter from the given ServletContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextUtil

public ContextUtil()
Method Detail

getInitParamBoolean

public static boolean getInitParamBoolean(javax.servlet.ServletContext context,
                                          java.lang.String name)
Retrieve the named context-parameter from the given ServletContext. If the parameter is not defined, return false, otherwise return the value as a boolean. If the value cannot be converted to a boolean type, return false.


getInitParam

public static java.lang.String getInitParam(javax.servlet.ServletContext context,
                                            java.lang.String name)
Retrieve the named context-parameter from the given ServletContext. If the parameter is not defined, return null.


getInitParam

public static java.lang.String getInitParam(javax.servlet.ServletContext context,
                                            java.lang.String name,
                                            java.lang.String deflt)
Retrieve the named context-parameter from the given ServletContext. If the parameter is not defined, return the default value instead.


rewrite-integration-gwt 1.0.1.Final

Copyright © 2012 OCPsoft. All Rights Reserved.