public interface PortletConfig
PortletConfig interface provides the portlet with its configuration. The configuration holds
information about the portlet that is valid for all users. The configuration is retrieved from the portlet definition
in the deployment descriptor. The portlet can only read the configuration data.
The configuration information contains the portlet name, the portlet initialization parameters, the portlet resource
bundle and the portlet application context.Portlet| Modifier and Type | Method and Description |
|---|---|
String |
getInitParameter(String name)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not
exist.
|
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. |
PortletContext |
getPortletContext()
Returns the
PortletContext of the portlet application the portlet is in. |
String |
getPortletName()
Returns the name of the portlet.
|
ResourceBundle |
getResourceBundle(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. |
String getPortletName()
portlet-name tag.PortletContext getPortletContext()
PortletContext of the portlet application the portlet is in.PortletContext object, used by the caller to interact with its portlet containerPortletContextResourceBundle getResourceBundle(Locale locale)
resource-bundle tag or the inlined resources defined in the deployment descriptor.locale - the locale for which to retrieve the resource bundleString getInitParameter(String name) throws IllegalArgumentException
name - a String specifying the name of the initialization parameterString containing the value of the initialization parameterIllegalArgumentException - if name is null.Enumeration getInitParameterNames()
Enumeration of String objects, or an
empty Enumeration if the portlet has no initialization parameters.Enumeration of String objects containing the names of the portlet
initialization parameters, or an empty Enumeration if the portlet has no initialization parameters.Copyright © 2003-2017 GateIn. All Rights Reserved.