类 MockPortletConfig
- java.lang.Object
- org.springframework.mock.web.portlet.MockPortletConfig
- 所有已实现的接口:
PortletConfig
public class MockPortletConfig extends Object implements PortletConfig
Mock implementation of thePortletConfig
interface.- 从以下版本开始:
- 2.0
- 作者:
- John A. Lewis, Juergen Hoeller
构造器概要
构造器 构造器 说明 MockPortletConfig()
Create a new MockPortletConfig with a defaultMockPortletContext
.MockPortletConfig(String portletName)
Create a new MockPortletConfig with a defaultMockPortletContext
.MockPortletConfig(PortletContext portletContext)
Create a new MockPortletConfig.MockPortletConfig(PortletContext portletContext, String portletName)
Create a new MockPortletConfig.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
MockPortletConfig
public MockPortletConfig()
Create a new MockPortletConfig with a defaultMockPortletContext
.
MockPortletConfig
public MockPortletConfig(String portletName)
Create a new MockPortletConfig with a defaultMockPortletContext
.- 参数:
portletName
- the name of the portlet
MockPortletConfig
public MockPortletConfig(PortletContext portletContext)
Create a new MockPortletConfig.- 参数:
portletContext
- the PortletContext that the portlet runs in
MockPortletConfig
public MockPortletConfig(PortletContext portletContext, String portletName)
Create a new MockPortletConfig.- 参数:
portletContext
- the PortletContext that the portlet runs inportletName
- the name of the portlet
方法详细资料
getPortletName
public String getPortletName()
- 指定者:
getPortletName
在接口中PortletConfig
getPortletContext
public PortletContext getPortletContext()
- 指定者:
getPortletContext
在接口中PortletConfig
setResourceBundle
public void setResourceBundle(Locale locale, ResourceBundle resourceBundle)
getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)
- 指定者:
getResourceBundle
在接口中PortletConfig
addInitParameter
public void addInitParameter(String name, String value)
getInitParameter
public String getInitParameter(String name)
- 指定者:
getInitParameter
在接口中PortletConfig
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- 指定者:
getInitParameterNames
在接口中PortletConfig
addPublicRenderParameterName
public void addPublicRenderParameterName(String name)
getPublicRenderParameterNames
public Enumeration<String> getPublicRenderParameterNames()
setDefaultNamespace
public void setDefaultNamespace(String defaultNamespace)
getDefaultNamespace
public String getDefaultNamespace()
- 指定者:
getDefaultNamespace
在接口中PortletConfig
addPublishingEventQName
public void addPublishingEventQName(QName name)
getPublishingEventQNames
public Enumeration<QName> getPublishingEventQNames()
- 指定者:
getPublishingEventQNames
在接口中PortletConfig
addProcessingEventQName
public void addProcessingEventQName(QName name)
getProcessingEventQNames
public Enumeration<QName> getProcessingEventQNames()
- 指定者:
getProcessingEventQNames
在接口中PortletConfig
addSupportedLocale
public void addSupportedLocale(Locale locale)
getSupportedLocales
public Enumeration<Locale> getSupportedLocales()
- 指定者:
getSupportedLocales
在接口中PortletConfig
addContainerRuntimeOption
public void addContainerRuntimeOption(String key, String value)
addContainerRuntimeOption
public void addContainerRuntimeOption(String key, String[] values)
getContainerRuntimeOptions
public Map<String,String[]> getContainerRuntimeOptions()
- 指定者:
getContainerRuntimeOptions
在接口中PortletConfig