org.apache.cocoon.portlet
Class SettingsHelper

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

public class SettingsHelper
extends Object

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

Version:
$Id: SettingsHelper.java 322475 2005-10-16 14:26:44Z cziegeler $

Method Summary
static void fill(MutableSettings s, javax.portlet.PortletConfig config)
           
protected static boolean getInitParameterAsBoolean(javax.portlet.PortletConfig config, String name, boolean defaultValue)
          Convenience method to access boolean servlet parameters
protected static int getInitParameterAsInteger(javax.portlet.PortletConfig 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,
                        javax.portlet.PortletConfig config)

getInitParameterAsBoolean

protected static boolean getInitParameterAsBoolean(javax.portlet.PortletConfig config,
                                                   String name,
                                                   boolean defaultValue)
Convenience method to access boolean servlet parameters


getInitParameterAsInteger

protected static int getInitParameterAsInteger(javax.portlet.PortletConfig config,
                                               String name,
                                               int defaultValue)


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