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