org.seasar.portlet.util
クラス PortletConfigUtil

java.lang.Object
  上位を拡張 org.seasar.portlet.util.PortletConfigUtil

public class PortletConfigUtil
extends java.lang.Object

This class is a utility class to use PortletConfig on Seasar2 environment.

作成者:
Shinsuke Sugaya

コンストラクタの概要
PortletConfigUtil()
           
 
メソッドの概要
static java.lang.String getInitParameter(java.lang.String name)
          Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
static java.util.Enumeration getInitParameterNames()
          Returns the names of the portlet initialization parameters as an Enumeration of String objects, or an empty Enumeration if the portlet has no initialization parameters.
static javax.portlet.PortletConfig getPortletConfig()
           
static javax.portlet.PortletContext getPortletContext()
          Returns the PortletContext of the portlet application the portlet is in.
static java.lang.String getPortletName()
          Returns the name of the portlet.
static java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
          Gets the resource bundle for the given locale based on the resource bundle defined in the deployment descriptor with resource-bundle tag or the inlined resources defined in the deployment descriptor.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PortletConfigUtil

public PortletConfigUtil()
メソッドの詳細

getPortletConfig

public static javax.portlet.PortletConfig getPortletConfig()

getPortletName

public static java.lang.String getPortletName()
Returns the name of the portlet.

The name may be provided via server administration, assigned in the portlet application deployment descriptor with the portlet-name tag.

戻り値:
the portlet name

getPortletContext

public static javax.portlet.PortletContext getPortletContext()
Returns the PortletContext of the portlet application the portlet is in.

戻り値:
a PortletContext object, used by the caller to interact with its portlet container
関連項目:
PortletContext

getResourceBundle

public static java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
Gets the resource bundle for the given locale based on the resource bundle defined in the deployment descriptor with resource-bundle tag or the inlined resources defined in the deployment descriptor.

パラメータ:
locale - the locale for which to retrieve the resource bundle
戻り値:
the resource bundle for the given locale

getInitParameter

public static java.lang.String getInitParameter(java.lang.String name)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.

パラメータ:
name - a String specifying the name of the initialization parameter
戻り値:
a String containing the value of the initialization parameter
例外:
java.lang.IllegalArgumentException - if name is null.

getInitParameterNames

public static java.util.Enumeration getInitParameterNames()
Returns the names of the portlet initialization parameters as an Enumeration of String objects, or an empty Enumeration if the portlet has no initialization parameters.

戻り値:
an Enumeration of String objects containing the names of the portlet initialization parameters, or an empty Enumeration if the portlet has no initialization parameters.


Copyright 2006 null. All Rights Reserved.