Class MockLiferayPortletRenderResponse
Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletRenderResponse
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse,MimeResponse,PortletResponse,RenderResponse
public class MockLiferayPortletRenderResponse
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, RenderResponse
- Author:
- Jürgen Kappler
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.portlet.MimeResponse
MimeResponse.Copy -
Field Summary
Fields inherited from interface javax.portlet.MimeResponse
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDateHeader(String name, long date) voidvoidaddIntHeader(String name, int value) voidaddProperty(String name, String value) voidaddProperty(String name, Element element) voidaddProperty(javax.servlet.http.Cookie cookie) <T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName, MimeResponse.Copy copy) createElement(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateResourceURL(String portletName) voidintjavax.servlet.http.HttpServletResponsecom.liferay.portal.kernel.model.PortletgetProperty(String name) getPropertyValues(String key) booleanvoidreset()voidvoidsetBufferSize(int bufferSize) voidsetContentType(String contentType) voidsetDateHeader(String name, long date) voidvoidsetIntHeader(String name, int value) voidsetNextPossiblePortletModes(Collection<? extends PortletMode> collection) voidsetProperty(String key, String value) voidvoidsetURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) voidtransferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) void
-
Constructor Details
-
MockLiferayPortletRenderResponse
public MockLiferayPortletRenderResponse()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addProperty
public void addProperty(javax.servlet.http.Cookie cookie) - Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
addProperty
- Specified by:
addPropertyin interfacePortletResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createActionURLin interfaceMimeResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createActionURLin interfaceMimeResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElementin interfacePortletResponse- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createRenderURLin interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createRenderURLin interfaceMimeResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createResourceURLin interfaceMimeResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURLin interfacePortletResponse
-
flushBuffer
- Specified by:
flushBufferin interfaceMimeResponse- Throws:
IOException
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfaceMimeResponse
-
getCacheControl
- Specified by:
getCacheControlin interfaceMimeResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceMimeResponse
-
getContentType
- Specified by:
getContentTypein interfaceMimeResponse
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponsein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecyclein interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLocale
- Specified by:
getLocalein interfaceMimeResponse
-
getNamespace
- Specified by:
getNamespacein interfacePortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletOutputStream
- Specified by:
getPortletOutputStreamin interfaceMimeResponse- Throws:
IOException
-
getProperties
- Specified by:
getPropertiesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getPropertyin interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValuesin interfacePortletResponse
-
getWriter
- Specified by:
getWriterin interfaceMimeResponse- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceMimeResponse
-
reset
public void reset()- Specified by:
resetin interfaceMimeResponse
-
resetBuffer
public void resetBuffer()- Specified by:
resetBufferin interfaceMimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSizein interfaceMimeResponse
-
setContentType
- Specified by:
setContentTypein interfaceMimeResponse- Specified by:
setContentTypein interfaceRenderResponse
-
setDateHeader
- Specified by:
setDateHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setHeader
- Specified by:
setHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeaderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setNextPossiblePortletModes
- Specified by:
setNextPossiblePortletModesin interfaceRenderResponse
-
setProperty
- Specified by:
setPropertyin interfacePortletResponse
-
setTitle
- Specified by:
setTitlein interfaceRenderResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferHeaders
public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeadersin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElementsin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-