|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.mock.web.portlet.MockPortletResponse
public class MockPortletResponse
Mock implementation of the PortletResponse interface.
| Constructor Summary | |
|---|---|
MockPortletResponse()
Create a new MockPortletResponse with a default MockPortalContext. |
|
MockPortletResponse(javax.portlet.PortalContext portalContext)
Create a new MockPortletResponse. |
|
| Method Summary | |
|---|---|
void |
addProperty(Cookie cookie)
|
void |
addProperty(String key,
Element value)
|
void |
addProperty(String key,
String value)
|
Element |
createElement(String tagName)
|
String |
encodeURL(String path)
|
Cookie |
getCookie(String name)
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockPortletResponse()
MockPortalContext.
MockPortalContextpublic MockPortletResponse(javax.portlet.PortalContext portalContext)
portalContext - the PortalContext defining the supported
PortletModes and WindowStates| Method Detail |
|---|
public javax.portlet.PortalContext getPortalContext()
public void addProperty(String key,
String value)
addProperty in interface javax.portlet.PortletResponse
public void setProperty(String key,
String value)
setProperty in interface javax.portlet.PortletResponsepublic Set<String> getPropertyNames()
public String getProperty(String key)
public String[] getProperties(String key)
public 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(Cookie cookie)
addProperty in interface javax.portlet.PortletResponsepublic Cookie[] getCookies()
public Cookie getCookie(String name)
public void addProperty(String key,
Element value)
addProperty in interface javax.portlet.PortletResponsepublic Set<String> getXmlPropertyNames()
public Element getXmlProperty(String key)
public Element[] getXmlProperties(String key)
public Element createElement(String tagName)
throws DOMException
createElement in interface javax.portlet.PortletResponseDOMException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||