public class MockPortletConfig extends java.lang.Object implements PortletConfig
PortletConfig
interface.Constructor and Description |
---|
MockPortletConfig()
Create a new MockPortletConfig with a default
MockPortletContext . |
MockPortletConfig(PortletContext portletContext)
Create a new MockPortletConfig.
|
MockPortletConfig(PortletContext portletContext,
java.lang.String portletName)
Create a new MockPortletConfig.
|
MockPortletConfig(java.lang.String portletName)
Create a new MockPortletConfig with a default
MockPortletContext . |
Modifier and Type | Method and Description |
---|---|
void |
addContainerRuntimeOption(java.lang.String key,
java.lang.String value) |
void |
addContainerRuntimeOption(java.lang.String key,
java.lang.String[] values) |
void |
addInitParameter(java.lang.String name,
java.lang.String value) |
void |
addProcessingEventQName(QName name) |
void |
addPublicRenderParameterName(java.lang.String name) |
void |
addPublishingEventQName(QName name) |
void |
addSupportedLocale(java.util.Locale locale) |
java.util.Map<java.lang.String,java.lang.String[]> |
getContainerRuntimeOptions() |
java.lang.String |
getDefaultNamespace() |
java.lang.String |
getInitParameter(java.lang.String name) |
java.util.Enumeration<java.lang.String> |
getInitParameterNames() |
PortletContext |
getPortletContext() |
java.lang.String |
getPortletName() |
java.util.Enumeration<QName> |
getProcessingEventQNames() |
java.util.Enumeration<java.lang.String> |
getPublicRenderParameterNames() |
java.util.Enumeration<QName> |
getPublishingEventQNames() |
java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale) |
java.util.Enumeration<java.util.Locale> |
getSupportedLocales() |
void |
setDefaultNamespace(java.lang.String defaultNamespace) |
void |
setResourceBundle(java.util.Locale locale,
java.util.ResourceBundle resourceBundle) |
public MockPortletConfig()
MockPortletContext
.public MockPortletConfig(java.lang.String portletName)
MockPortletContext
.portletName
- the name of the portletpublic MockPortletConfig(PortletContext portletContext)
portletContext
- the PortletContext that the portlet runs inpublic MockPortletConfig(PortletContext portletContext, java.lang.String portletName)
portletContext
- the PortletContext that the portlet runs inportletName
- the name of the portletpublic java.lang.String getPortletName()
getPortletName
in interface PortletConfig
public PortletContext getPortletContext()
getPortletContext
in interface PortletConfig
public void setResourceBundle(java.util.Locale locale, java.util.ResourceBundle resourceBundle)
public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
getResourceBundle
in interface PortletConfig
public void addInitParameter(java.lang.String name, java.lang.String value)
public java.lang.String getInitParameter(java.lang.String name)
getInitParameter
in interface PortletConfig
public java.util.Enumeration<java.lang.String> getInitParameterNames()
getInitParameterNames
in interface PortletConfig
public void addPublicRenderParameterName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getPublicRenderParameterNames()
getPublicRenderParameterNames
in interface PortletConfig
public void setDefaultNamespace(java.lang.String defaultNamespace)
public java.lang.String getDefaultNamespace()
getDefaultNamespace
in interface PortletConfig
public void addPublishingEventQName(QName name)
public java.util.Enumeration<QName> getPublishingEventQNames()
getPublishingEventQNames
in interface PortletConfig
public void addProcessingEventQName(QName name)
public java.util.Enumeration<QName> getProcessingEventQNames()
getProcessingEventQNames
in interface PortletConfig
public void addSupportedLocale(java.util.Locale locale)
public java.util.Enumeration<java.util.Locale> getSupportedLocales()
getSupportedLocales
in interface PortletConfig
public void addContainerRuntimeOption(java.lang.String key, java.lang.String value)
public void addContainerRuntimeOption(java.lang.String key, java.lang.String[] values)
public java.util.Map<java.lang.String,java.lang.String[]> getContainerRuntimeOptions()
getContainerRuntimeOptions
in interface PortletConfig