public class MockPortletConfig
extends java.lang.Object
javax.portlet.PortletConfig
interface.Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String[]> |
containerRuntimeOptions |
private java.lang.String |
defaultNamespace |
private java.util.Map<java.lang.String,java.lang.String> |
initParameters |
private PortletContext |
portletContext |
private java.lang.String |
portletName |
private java.util.Set<javax.xml.namespace.QName> |
processingEventQNames |
private java.util.Set<java.lang.String> |
publicRenderParameterNames |
private java.util.Set<javax.xml.namespace.QName> |
publishingEventQNames |
private java.util.Map<java.util.Locale,java.util.ResourceBundle> |
resourceBundles |
private java.util.Set<java.util.Locale> |
supportedLocales |
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(javax.xml.namespace.QName name) |
void |
addPublicRenderParameterName(java.lang.String name) |
void |
addPublishingEventQName(javax.xml.namespace.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<javax.xml.namespace.QName> |
getProcessingEventQNames() |
java.util.Enumeration<java.lang.String> |
getPublicRenderParameterNames() |
java.util.Enumeration<javax.xml.namespace.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) |
private final PortletContext portletContext
private final java.lang.String portletName
private final java.util.Map<java.util.Locale,java.util.ResourceBundle> resourceBundles
private final java.util.Map<java.lang.String,java.lang.String> initParameters
private final java.util.Set<java.lang.String> publicRenderParameterNames
private java.lang.String defaultNamespace
private final java.util.Set<javax.xml.namespace.QName> publishingEventQNames
private final java.util.Set<javax.xml.namespace.QName> processingEventQNames
private final java.util.Set<java.util.Locale> supportedLocales
private final java.util.Map<java.lang.String,java.lang.String[]> containerRuntimeOptions
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()
public PortletContext getPortletContext()
public void setResourceBundle(java.util.Locale locale, java.util.ResourceBundle resourceBundle)
public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
public void addInitParameter(java.lang.String name, java.lang.String value)
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration<java.lang.String> getInitParameterNames()
public void addPublicRenderParameterName(java.lang.String name)
public java.util.Enumeration<java.lang.String> getPublicRenderParameterNames()
public void setDefaultNamespace(java.lang.String defaultNamespace)
public java.lang.String getDefaultNamespace()
public void addPublishingEventQName(javax.xml.namespace.QName name)
public java.util.Enumeration<javax.xml.namespace.QName> getPublishingEventQNames()
public void addProcessingEventQName(javax.xml.namespace.QName name)
public java.util.Enumeration<javax.xml.namespace.QName> getProcessingEventQNames()
public void addSupportedLocale(java.util.Locale locale)
public java.util.Enumeration<java.util.Locale> getSupportedLocales()
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()