org.hippoecm.hst.util
Class PortletConfigUtils

java.lang.Object
  extended by org.hippoecm.hst.util.PortletConfigUtils

public class PortletConfigUtils
extends Object

PortletConfigUtils

Version:
$Id: PortletConfigUtils.java 21433 2010-01-28 16:27:50Z wko $

Method Summary
static String getInitParameter(javax.portlet.PortletConfig portletConfig, javax.portlet.PortletContext portletContext, String paramName, String defaultValue)
          Retrieves the init parameter from the portletConfig or portletContext.
static String getInitParameter(String paramName, String defaultValue, Object... configs)
           
static boolean isBlank(String s)
           
static boolean isEmpty(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInitParameter

public static String getInitParameter(javax.portlet.PortletConfig portletConfig,
                                      javax.portlet.PortletContext portletContext,
                                      String paramName,
                                      String defaultValue)
Retrieves the init parameter from the portletConfig or portletContext. If the init parameter is not found in portletConfig, then it will look up the init parameter from the portletContext. If either servletConfig or servletContext is null, then either is not used to look up the init parameter. If the parameter is not found, then it will return the defaultValue.

Parameters:
portletConfig - portletConfig. If null, this is not used.
portletContext - portletContext. If null, this is not used.
paramName - parameter name
defaultValue - the default value
Returns:

getInitParameter

public static String getInitParameter(String paramName,
                                      String defaultValue,
                                      Object... configs)
Parameters:
paramName -
defaultValue -
configs -
Returns:
See Also:
ServletConfigUtils#getInitParameter(String, String, Object...)}

isEmpty

public static boolean isEmpty(String s)
Parameters:
s -
Returns:
See Also:
ServletConfigUtils#isEmpty(String)}

isBlank

public static boolean isBlank(String s)
Parameters:
s -
Returns:
See Also:
ServletConfigUtils#isBlank(String)}


Copyright © 2008-2012 Hippo. All Rights Reserved.