Class MockPortletResponse
Object
com.liferay.portal.kernel.test.portlet.MockPortletResponse
- All Implemented Interfaces:
PortletResponse
- Direct Known Subclasses:
MockMimeResponse
,MockStateAwareResponse
- Author:
- Dante Wang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String key, String value) void
addProperty
(String key, Element value) void
addProperty
(javax.servlet.http.Cookie cookie) createElement
(String tagName) javax.servlet.http.Cookie
javax.servlet.http.Cookie[]
String[]
getProperties
(String key) getProperty
(String key) getPropertyValues
(String key) Element[]
getXmlProperties
(String key) getXmlProperty
(String key) void
setNamespace
(String namespace) void
setProperty
(String key, String value)
-
Constructor Details
-
MockPortletResponse
public MockPortletResponse() -
MockPortletResponse
-
-
Method Details
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
addProperty
- Specified by:
addProperty
in interfacePortletResponse
-
createElement
- Specified by:
createElement
in interfacePortletResponse
- Throws:
DOMException
-
encodeURL
- Specified by:
encodeURL
in interfacePortletResponse
-
getCookie
-
getCookies
public javax.servlet.http.Cookie[] getCookies() -
getNamespace
- Specified by:
getNamespace
in interfacePortletResponse
-
getPortalContext
-
getProperties
-
getProperty
- Specified by:
getProperty
in interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValues
in interfacePortletResponse
-
getXmlProperties
-
getXmlProperty
-
getXmlPropertyNames
-
setNamespace
-
setProperty
- Specified by:
setProperty
in interfacePortletResponse
-