public class MockPortletConfig extends Object implements javax.portlet.PortletConfig
PortletConfig
interface.Constructor and Description |
---|
MockPortletConfig()
Create a new MockPortletConfig with a default
MockPortletContext . |
MockPortletConfig(javax.portlet.PortletContext portletContext)
Create a new MockPortletConfig.
|
MockPortletConfig(javax.portlet.PortletContext portletContext,
String portletName)
Create a new MockPortletConfig.
|
MockPortletConfig(String portletName)
Create a new MockPortletConfig with a default
MockPortletContext . |
public MockPortletConfig()
MockPortletContext
.public MockPortletConfig(String portletName)
MockPortletContext
.portletName
- the name of the portletpublic MockPortletConfig(javax.portlet.PortletContext portletContext)
portletContext
- the PortletContext that the portlet runs inpublic MockPortletConfig(javax.portlet.PortletContext portletContext, String portletName)
portletContext
- the PortletContext that the portlet runs inportletName
- the name of the portletpublic String getPortletName()
getPortletName
in interface javax.portlet.PortletConfig
public javax.portlet.PortletContext getPortletContext()
getPortletContext
in interface javax.portlet.PortletConfig
public void setResourceBundle(Locale locale, ResourceBundle resourceBundle)
public ResourceBundle getResourceBundle(Locale locale)
getResourceBundle
in interface javax.portlet.PortletConfig
public String getInitParameter(String name)
getInitParameter
in interface javax.portlet.PortletConfig
public Enumeration<String> getInitParameterNames()
getInitParameterNames
in interface javax.portlet.PortletConfig
public void addPublicRenderParameterName(String name)
public Enumeration<String> getPublicRenderParameterNames()
getPublicRenderParameterNames
in interface javax.portlet.PortletConfig
public void setDefaultNamespace(String defaultNamespace)
public String getDefaultNamespace()
getDefaultNamespace
in interface javax.portlet.PortletConfig
public void addPublishingEventQName(QName name)
public Enumeration<QName> getPublishingEventQNames()
getPublishingEventQNames
in interface javax.portlet.PortletConfig
public void addProcessingEventQName(QName name)
public Enumeration<QName> getProcessingEventQNames()
getProcessingEventQNames
in interface javax.portlet.PortletConfig
public void addSupportedLocale(Locale locale)
public Enumeration<Locale> getSupportedLocales()
getSupportedLocales
in interface javax.portlet.PortletConfig
Copyright © 2015. All rights reserved.