public class

MockPortletConfig

extends Object
java.lang.Object
   ↳ org.springframework.mock.web.portlet.MockPortletConfig

Class Overview

Mock implementation of the javax.portlet.PortletConfig interface.

Summary

Public Constructors
MockPortletConfig()
Create a new MockPortletConfig with a default MockPortletContext.
MockPortletConfig(String portletName)
Create a new MockPortletConfig with a default MockPortletContext.
MockPortletConfig(PortletContext portletContext)
Create a new MockPortletConfig.
MockPortletConfig(PortletContext portletContext, String portletName)
Create a new MockPortletConfig.
Public Methods
void addContainerRuntimeOption(String key, String[] values)
void addContainerRuntimeOption(String key, String value)
void addInitParameter(String name, String value)
void addProcessingEventQName(QName name)
void addPublicRenderParameterName(String name)
void addPublishingEventQName(QName name)
void addSupportedLocale(Locale locale)
Map<StringString[]> 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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MockPortletConfig ()

Create a new MockPortletConfig with a default MockPortletContext.

public MockPortletConfig (String portletName)

Create a new MockPortletConfig with a default MockPortletContext.

Parameters
portletName the name of the portlet

public MockPortletConfig (PortletContext portletContext)

Create a new MockPortletConfig.

Parameters
portletContext the PortletContext that the portlet runs in

public MockPortletConfig (PortletContext portletContext, String portletName)

Create a new MockPortletConfig.

Parameters
portletContext the PortletContext that the portlet runs in
portletName the name of the portlet

Public Methods

public void addContainerRuntimeOption (String key, String[] values)

public void addContainerRuntimeOption (String key, String value)

public void addInitParameter (String name, String value)

public void addProcessingEventQName (QName name)

public void addPublicRenderParameterName (String name)

public void addPublishingEventQName (QName name)

public void addSupportedLocale (Locale locale)

public Map<StringString[]> getContainerRuntimeOptions ()

public String getDefaultNamespace ()

public String getInitParameter (String name)

public Enumeration<String> getInitParameterNames ()

public PortletContext getPortletContext ()

public String getPortletName ()

public Enumeration<QName> getProcessingEventQNames ()

public Enumeration<String> getPublicRenderParameterNames ()

public Enumeration<QName> getPublishingEventQNames ()

public ResourceBundle getResourceBundle (Locale locale)

public Enumeration<Locale> getSupportedLocales ()

public void setDefaultNamespace (String defaultNamespace)

public void setResourceBundle (Locale locale, ResourceBundle resourceBundle)