org.springframework.mock.web.portlet
Class MockPortletURL
java.lang.Object
   org.springframework.mock.web.portlet.MockPortletURL
org.springframework.mock.web.portlet.MockPortletURL
- All Implemented Interfaces: 
- javax.portlet.PortletURL
- public class MockPortletURL 
- extends Object- implements javax.portlet.PortletURL
Mock implementation of the PortletURL interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
 
| Constructor Summary | 
| MockPortletURL(javax.portlet.PortalContext portalContext,
               String urlType)Create a new MockPortletURL for the given URL type.
 | 
 
 
 
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(javax.portlet.PortalContext portalContext,
                      String urlType)
- Create a new MockPortletURL for the given URL type.
 
- Parameters:
- portalContext- the PortalContext defining the supported
 PortletModes and WindowStates
- urlType- the URL type, for example "render" or "action"
- See Also:
- URL_TYPE_RENDER,- URL_TYPE_ACTION
 
setWindowState
public void setWindowState(javax.portlet.WindowState windowState)
                    throws javax.portlet.WindowStateException
- 
- Specified by:
- setWindowStatein interface- javax.portlet.PortletURL
 
- 
- Throws:
- javax.portlet.WindowStateException
 
setPortletMode
public void setPortletMode(javax.portlet.PortletMode portletMode)
                    throws javax.portlet.PortletModeException
- 
- Specified by:
- setPortletModein interface- javax.portlet.PortletURL
 
- 
- Throws:
- javax.portlet.PortletModeException
 
setParameter
public void setParameter(String key,
                         String value)
- 
- Specified by:
- setParameterin interface- javax.portlet.PortletURL
 
- 
 
setParameter
public void setParameter(String key,
                         String[] values)
- 
- Specified by:
- setParameterin interface- javax.portlet.PortletURL
 
- 
 
setParameters
public void setParameters(Map parameters)
- 
- Specified by:
- setParametersin interface- javax.portlet.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 javax.portlet.PortletSecurityException
- 
- Specified by:
- setSecurein interface- javax.portlet.PortletURL
 
- 
- Throws:
- javax.portlet.PortletSecurityException
 
isSecure
public boolean isSecure()
- 
 
- 
 
toString
public String toString()
- 
- Specified by:
- toStringin interface- javax.portlet.PortletURL
- Overrides:
- toStringin class- Object
 
- 
 
Copyright © 2002-2008 The Spring Framework.