当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
MockPortletURL (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.mock.web.portlet
Class MockPortletURL
java.lang.Object
org.springframework.mock.web.portlet.MockPortletURL
- All Implemented Interfaces:
- PortletURL
public class MockPortletURL
- extends Object
- implements PortletURL
Mock implementation of the PortletURL
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
URL_TYPE_RENDER
public static final String URL_TYPE_RENDER
- See Also:
- Constant Field Values
URL_TYPE_ACTION
public static final String URL_TYPE_ACTION
- See Also:
- Constant Field Values
MockPortletURL
public MockPortletURL(PortalContext portalContext,
String urlType)
- Create a new MockPortletURL for the given URL type.
- Parameters:
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatesurlType
- the URL type, for example "render" or "action"- See Also:
URL_TYPE_RENDER
,
URL_TYPE_ACTION
setWindowState
public void setWindowState(WindowState windowState)
throws WindowStateException
- Specified by:
setWindowState
in interface PortletURL
- Throws:
WindowStateException
setPortletMode
public void setPortletMode(PortletMode portletMode)
throws PortletModeException
- Specified by:
setPortletMode
in interface PortletURL
- Throws:
PortletModeException
setParameter
public void setParameter(String key,
String value)
- Specified by:
setParameter
in interface PortletURL
setParameter
public void setParameter(String key,
String[] values)
- Specified by:
setParameter
in interface PortletURL
setParameters
public void setParameters(Map parameters)
- Specified by:
setParameters
in interface PortletURL
getParameterNames
public Set getParameterNames()
getParameter
public String getParameter(String name)
getParameterValues
public String[] getParameterValues(String name)
getParameterMap
public Map getParameterMap()
setSecure
public void setSecure(boolean secure)
throws PortletSecurityException
- Specified by:
setSecure
in interface PortletURL
- Throws:
PortletSecurityException
isSecure
public boolean isSecure()
toString
public String toString()
- Specified by:
toString
in interface PortletURL
- Overrides:
toString
in class Object
Copyright © 2002-2007 The Spring Framework.