public class MockPortletResponse
extends java.lang.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(java.lang.String key,
org.w3c.dom.Element value) |
void |
addProperty(java.lang.String key,
java.lang.String value) |
org.w3c.dom.Element |
createElement(java.lang.String tagName) |
java.lang.String |
encodeURL(java.lang.String path) |
javax.servlet.http.Cookie |
getCookie(java.lang.String name) |
javax.servlet.http.Cookie[] |
getCookies() |
java.lang.String |
getNamespace() |
javax.portlet.PortalContext |
getPortalContext()
Return the PortalContext that this MockPortletResponse runs in,
defining the supported PortletModes and WindowStates.
|
java.lang.String[] |
getProperties(java.lang.String key) |
java.lang.String |
getProperty(java.lang.String key) |
java.util.Set<java.lang.String> |
getPropertyNames() |
org.w3c.dom.Element[] |
getXmlProperties(java.lang.String key) |
org.w3c.dom.Element |
getXmlProperty(java.lang.String key) |
java.util.Set<java.lang.String> |
getXmlPropertyNames() |
void |
setNamespace(java.lang.String namespace) |
void |
setProperty(java.lang.String key,
java.lang.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(java.lang.String key,
java.lang.String value)
addProperty in interface javax.portlet.PortletResponsepublic void setProperty(java.lang.String key,
java.lang.String value)
setProperty in interface javax.portlet.PortletResponsepublic java.util.Set<java.lang.String> getPropertyNames()
public java.lang.String getProperty(java.lang.String key)
public java.lang.String[] getProperties(java.lang.String key)
public java.lang.String encodeURL(java.lang.String path)
encodeURL in interface javax.portlet.PortletResponsepublic void setNamespace(java.lang.String namespace)
public java.lang.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(java.lang.String name)
public void addProperty(java.lang.String key,
org.w3c.dom.Element value)
addProperty in interface javax.portlet.PortletResponsepublic java.util.Set<java.lang.String> getXmlPropertyNames()
public org.w3c.dom.Element getXmlProperty(java.lang.String key)
public org.w3c.dom.Element[] getXmlProperties(java.lang.String key)
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
createElement in interface javax.portlet.PortletResponseorg.w3c.dom.DOMException