public class MockPortletResponse extends Object implements javax.portlet.PortletResponse
PortletResponse interface.| Constructor and Description |
|---|
MockPortletResponse()
Create a new MockPortletResponse with a default
MockPortalContext. |
MockPortletResponse(javax.portlet.PortalContext portalContext)
Create a new MockPortletResponse.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(javax.servlet.http.Cookie cookie) |
void |
addProperty(String key,
Element value) |
void |
addProperty(String key,
String value) |
Element |
createElement(String tagName) |
String |
encodeURL(String path) |
javax.servlet.http.Cookie |
getCookie(String name) |
javax.servlet.http.Cookie[] |
getCookies() |
String |
getNamespace() |
javax.portlet.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) |
public MockPortletResponse()
MockPortalContext.MockPortalContextpublic MockPortletResponse(javax.portlet.PortalContext portalContext)
portalContext - the PortalContext defining the supported
PortletModes and WindowStatespublic javax.portlet.PortalContext getPortalContext()
public void addProperty(String key, String value)
addProperty in interface javax.portlet.PortletResponsepublic void setProperty(String key, String value)
setProperty in interface javax.portlet.PortletResponsepublic String encodeURL(String path)
encodeURL in interface javax.portlet.PortletResponsepublic void setNamespace(String namespace)
public String getNamespace()
getNamespace in interface javax.portlet.PortletResponsepublic void addProperty(javax.servlet.http.Cookie cookie)
addProperty in interface javax.portlet.PortletResponsepublic javax.servlet.http.Cookie[] getCookies()
public javax.servlet.http.Cookie getCookie(String name)
public void addProperty(String key, Element value)
addProperty in interface javax.portlet.PortletResponsepublic Element createElement(String tagName) throws DOMException
createElement in interface javax.portlet.PortletResponseDOMExceptionCopyright © 2015. All rights reserved.