public class

MockPortletResponse

extends Object
java.lang.Object
   ↳ org.springframework.mock.web.portlet.MockPortletResponse
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Mock implementation of the javax.portlet.PortletResponse interface.

Summary

Public Constructors
MockPortletResponse()
Create a new MockPortletResponse with a default MockPortalContext.
MockPortletResponse(PortalContext portalContext)
Create a new MockPortletResponse.
Public Methods
void addProperty(String key, Element value)
void addProperty(String key, String value)
void addProperty(Cookie cookie)
Element createElement(String tagName)
String encodeURL(String path)
Cookie getCookie(String name)
Cookie[] getCookies()
String getNamespace()
PortalContext getPortalContext()
Return the PortalContext that this MockPortletResponse runs in, defining the supported PortletModes and WindowStates.
String[] getProperties(String key)
String getProperty(String key)
Set<String> getPropertyNames()
Element[] getXmlProperties(String key)
Element getXmlProperty(String key)
Set<String> getXmlPropertyNames()
void setNamespace(String namespace)
void setProperty(String key, String value)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MockPortletResponse ()

Create a new MockPortletResponse with a default MockPortalContext.

public MockPortletResponse (PortalContext portalContext)

Create a new MockPortletResponse.

Parameters
portalContext the PortalContext defining the supported PortletModes and WindowStates

Public Methods

public void addProperty (String key, Element value)

public void addProperty (String key, String value)

public void addProperty (Cookie cookie)

public Element createElement (String tagName)

Throws
DOMException

public String encodeURL (String path)

public Cookie getCookie (String name)

public Cookie[] getCookies ()

public String getNamespace ()

public PortalContext getPortalContext ()

Return the PortalContext that this MockPortletResponse runs in, defining the supported PortletModes and WindowStates.

public String[] getProperties (String key)

public String getProperty (String key)

public Set<String> getPropertyNames ()

public Element[] getXmlProperties (String key)

public Element getXmlProperty (String key)

public Set<String> getXmlPropertyNames ()

public void setNamespace (String namespace)

public void setProperty (String key, String value)