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 |
|---|---|
| public Map | Returns: an immutableMap containing portlet
container runtime options names as keys and the
container runtime values as map values, or an empty Map
if no portlet container runtime options are set
in the portlet.xml or supported by this portlet container.
The keys in the map are of type String. The values in the map are of type
String array (String[]).Returns the container runtime options and values for this portlet. |
| public String | Returns: the default namespace defined in the portlet deployment descriptor, orXMLConstants.NULL_NS_URI is non is
defined.Returns the default namespace for events and public render parameters. |
| public String | Returns: aString containing the value
of the initialization parametera name)String specifying the name
of the initialization parameterReturns a String containing the value of the named initialization parameter, or null if the parameter does not exist. |
| public Enumeration | Returns: anEnumeration of String
objects containing the names of the portlet
initialization parameters, or an empty Enumeration if the
portlet has no initialization parameters.Returns the names of the portlet initialization parameters as an
|
| public PortletContext | Returns: aPortletContext object, used by the
caller to interact with its portlet containerReturns the |
| public Enumeration | Returns: anEnumeration of PortletMode
objects containing the defined and supported portlet modes.MIME type mimeType)
Returns an
Enumeration of PortletMode objects that are defined
for the portlet for the given MIME type. |
| public String | |
| public Enumeration | Returns: anEnumeration of QName
objects containing the names of the processing events,
or an empty Enumeration if the
portlet has not defined any support for processing events in
the deployment descriptor.Returns the QNames of the processing events supported by the portlet
as an |
| public Map | Returns: anMap of String to QName
Returns a Map of public render parameter names to their qualified names.
|
| public Enumeration | Returns: anEnumeration of String
objects containing the names of the public
render parameters, or an empty Enumeration if the
portlet has not defined support for any public render parameters
in the portlet deployment descriptor.Returns the names of the public render parameters supported by the portlet
as an |
| public Enumeration | Returns: anEnumeration of QName
objects containing the names of the publishing events,
or an empty Enumeration if the
portlet has not defined any support for publishing events in
the deployment descriptor.Returns the QNames of the publishing events supported by the portlet
as an |
| public ResourceBundle | Returns: the resource bundle for the given localethe locale for which to retrieve the resource bundle locale)Gets the resource bundle for the given locale based on the
resource bundle defined in the deployment descriptor
with |
| public Enumeration | Returns: anEnumeration of Locale
objects containing the supported locales,
or an empty Enumeration if the
portlet has not defined any supported locales in
the deployment descriptor.Returns the locales supported by the portlet
as an |
| public Enumeration | Returns: anEnumeration of WindowState
objects containing the defined and supported window states.MIME type mimeType)
Returns an
Enumeration of WindowState objects that are defined
for the portlet for the given MIME type. |
| getContainerRuntimeOptions | back to summary |
|---|---|
| public Map Returns the container runtime options and values for this portlet.
The portlet can set container runtime
options in the
The map returned from this method will provide the subset the
portlet container supports of the options the portlet has specified
in the
The map will contain name of the runtime option as key of type String
and the runtime options as values of type String array (
| |
| getDefaultNamespace | back to summary |
|---|---|
| public String getDefaultNamespace() Returns the default namespace for events and public render parameters.
This namespace is defined in the portlet deployment descriptor
with the
If no default namespace is defined in the portlet deployment
descriptor this methods returns the XML default namespace
| |
| getInitParameter | back to summary |
|---|---|
| public String getInitParameter(String name) Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.
| |
| getInitParameterNames | back to summary |
|---|---|
| public Enumeration Returns the names of the portlet initialization parameters as an
| |
| getPortletContext | back to summary |
|---|---|
| public PortletContext getPortletContext() Returns the
| |
| getPortletModes | back to summary |
|---|---|
| public Enumeration
Returns an
Enumeration of PortletMode objects that are defined
for the portlet for the given MIME type.
Note that a supported portlet mode may not be allowed in all situations
due to security or other reasons. To
determine whether a portlet mode is allowed during a request, use the
| |
| getPortletName | back to summary |
|---|---|
| public 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
| |
| getProcessingEventQNames | back to summary |
|---|---|
| public Enumeration Returns the QNames of the processing events supported by the portlet
as an
Processing events are defined in the portlet deployment descriptor
with the
If the event was defined using the
| |
| getPublicRenderParameterDefinitions | back to summary |
|---|---|
| public Map
Returns a Map of public render parameter names to their qualified names.
The names are the values returned by the
PortletConfig#getPublicRenderParameterNames() method.
The values are the QName values associated with the public
render parameter.
If the public render parameter is specified in the portlet descriptor
using the
| |
| getPublicRenderParameterNames | back to summary |
|---|---|
| public Enumeration Returns the names of the public render parameters supported by the portlet
as an
Public render parameters are defined in the portlet deployment descriptor
with the
| |
| getPublishingEventQNames | back to summary |
|---|---|
| public Enumeration Returns the QNames of the publishing events supported by the portlet
as an
Publishing events are defined in the portlet deployment descriptor
with the Note that this call does not return any events published that have not been declared in the deployment descriptor as supported.
If the event was defined using the
| |
| getResourceBundle | back to summary |
|---|---|
| public ResourceBundle getResourceBundle(Locale locale) Gets the resource bundle for the given locale based on the
resource bundle defined in the deployment descriptor
with
| |
| getSupportedLocales | back to summary |
|---|---|
| public Enumeration Returns the locales supported by the portlet
as an
Supported locales are defined in the portlet deployment descriptor
with the
| |
| getWindowStates | back to summary |
|---|---|
| public Enumeration
Returns an
Enumeration of WindowState objects that are defined
for the portlet for the given MIME type.
Note that a supported window state may not be allowed in all situations
due to security or other reasons. To
determine whether a window state is allowed during a request, use the
| |