rewrite-integration-gwt 2.0.0.Alpha6

org.ocpsoft.rewrite.servlet.util
Class ContextUtil

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

public class ContextUtil
extends Object

Utility method for easily interacting with the ServletContext

Author:
Lincoln Baxter, III

Constructor Summary
ContextUtil()
           
 
Method Summary
static String getInitParam(javax.servlet.ServletContext context, String name)
          Retrieve the named context-parameter from the given ServletContext.
static String getInitParam(javax.servlet.ServletContext context, String name, String deflt)
          Retrieve the named context-parameter from the given ServletContext.
static boolean getInitParamBoolean(javax.servlet.ServletContext context, 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,
                                          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 String getInitParam(javax.servlet.ServletContext context,
                                  String name)
Retrieve the named context-parameter from the given ServletContext. If the parameter is not defined, return null.


getInitParam

public static String getInitParam(javax.servlet.ServletContext context,
                                  String name,
                                  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 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.