org.apache.cocoon.servlet
Class SettingsHelper

java.lang.Object
  extended byorg.apache.cocoon.servlet.SettingsHelper

public class SettingsHelper
extends Object

This helper class initializes the MutableSettings object from the servlet configuration.

Version:
SVN $Id: SettingsHelper.java 312930 2005-10-11 18:13:35Z cziegeler $

Method Summary
static void fill(MutableSettings s, ServletConfig config)
           
protected static boolean getInitParameterAsBoolean(ServletConfig config, String name, boolean defaultValue)
          Convenience method to access boolean servlet parameters
protected static int getInitParameterAsInteger(ServletConfig config, String name, int defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fill

public static void fill(MutableSettings s,
                        ServletConfig config)

getInitParameterAsBoolean

protected static boolean getInitParameterAsBoolean(ServletConfig config,
                                                   String name,
                                                   boolean defaultValue)
Convenience method to access boolean servlet parameters


getInitParameterAsInteger

protected static int getInitParameterAsInteger(ServletConfig config,
                                               String name,
                                               int defaultValue)


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.