类 MockPortalContext
- java.lang.Object
- org.springframework.mock.web.portlet.MockPortalContext
- 所有已实现的接口:
PortalContext
public class MockPortalContext extends Object implements PortalContext
Mock implementation of thePortalContext
interface.- 从以下版本开始:
- 2.0
- 作者:
- John A. Lewis, Juergen Hoeller
字段概要
从接口继承的字段 javax.portlet.PortalContext
MARKUP_HEAD_ELEMENT_SUPPORT
构造器概要
构造器 构造器 说明 MockPortalContext()
Create a new MockPortalContext with default PortletModes (VIEW, EDIT, HELP) and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).MockPortalContext(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates)
Create a new MockPortalContext with the given PortletModes and WindowStates.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getPortalInfo()
String
getProperty(String name)
Enumeration<String>
getPropertyNames()
Enumeration<PortletMode>
getSupportedPortletModes()
Enumeration<WindowState>
getSupportedWindowStates()
void
setProperty(String name, String value)
构造器详细资料
MockPortalContext
public MockPortalContext()
Create a new MockPortalContext with default PortletModes (VIEW, EDIT, HELP) and default WindowStates (NORMAL, MAXIMIZED, MINIMIZED).- 另请参阅:
PortletMode
,WindowState
MockPortalContext
public MockPortalContext(List<PortletMode> supportedPortletModes, List<WindowState> supportedWindowStates)
Create a new MockPortalContext with the given PortletModes and WindowStates.- 参数:
supportedPortletModes
- the List of supported PortletMode instancessupportedWindowStates
- the List of supported WindowState instances- 另请参阅:
PortletMode
,WindowState
方法详细资料
getPortalInfo
public String getPortalInfo()
- 指定者:
getPortalInfo
在接口中PortalContext
setProperty
public void setProperty(String name, String value)
getProperty
public String getProperty(String name)
- 指定者:
getProperty
在接口中PortalContext
getPropertyNames
public Enumeration<String> getPropertyNames()
- 指定者:
getPropertyNames
在接口中PortalContext
getSupportedPortletModes
public Enumeration<PortletMode> getSupportedPortletModes()
- 指定者:
getSupportedPortletModes
在接口中PortalContext
getSupportedWindowStates
public Enumeration<WindowState> getSupportedWindowStates()
- 指定者:
getSupportedWindowStates
在接口中PortalContext