com.mf.roundhouse.portal.util
Class PortletConfigImpl

java.lang.Object
  extended bycom.mf.roundhouse.portal.util.PortletConfigImpl
All Implemented Interfaces:
PortletConfig

public class PortletConfigImpl
extends java.lang.Object
implements PortletConfig


Constructor Summary
PortletConfigImpl(PortletDefinition def, PortletContextImpl context)
           
 
Method Summary
 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.
 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.
 PortletContext getPortletContext()
          Returns the PortletContext of the portlet application the portlet is in.
 java.lang.String getPortletName()
          Returns the name of the portlet.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletConfigImpl

public PortletConfigImpl(PortletDefinition def,
                         PortletContextImpl context)
Method Detail

getPortletName

public java.lang.String getPortletName()
Description copied from interface: PortletConfig
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.

Specified by:
getPortletName in interface PortletConfig
Returns:
the portlet name

getPortletContext

public PortletContext getPortletContext()
Description copied from interface: PortletConfig
Returns the PortletContext of the portlet application the portlet is in.

Specified by:
getPortletContext in interface PortletConfig
Returns:
a PortletContext object, used by the caller to interact with its portlet container
See Also:
PortletContext

getResourceBundle

public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
Description copied from interface: PortletConfig
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.

Specified by:
getResourceBundle in interface PortletConfig
Parameters:
locale - the locale for which to retrieve the resource bundle
Returns:
the resource bundle for the given locale

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Description copied from interface: PortletConfig
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.

Specified by:
getInitParameter in interface PortletConfig
Parameters:
name - a String specifying the name of the initialization parameter
Returns:
a String containing the value of the initialization parameter

getInitParameterNames

public java.util.Enumeration getInitParameterNames()
Description copied from interface: PortletConfig
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.

Specified by:
getInitParameterNames in interface PortletConfig
Returns:
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 © 2004 Media Fortress, LLC. Licensed for commercial use under the Apache 2.0 License.