Class MockLiferayPortletRenderResponse
Object
com.liferay.portal.kernel.test.portlet.MockLiferayPortletRenderResponse
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse,jakarta.portlet.MimeResponse,jakarta.portlet.PortletResponse,jakarta.portlet.RenderResponse
public class MockLiferayPortletRenderResponse
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, jakarta.portlet.RenderResponse
- Author:
- Jürgen Kappler
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.portlet.MimeResponse
jakarta.portlet.MimeResponse.Copy -
Field Summary
Fields inherited from interface jakarta.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(jakarta.servlet.http.Cookie cookie) voidaddProperty(String name, String value) voidaddProperty(String name, Element element) <T extends jakarta.portlet.PortletURL & jakarta.portlet.ActionURL>
Tjakarta.portlet.ActionURLcreateActionURL(jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateActionURL(String portletName, jakarta.portlet.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, jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateLiferayPortletURL(long plid, String portletName, String lifecycle, jakarta.portlet.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, jakarta.portlet.MimeResponse.Copy copy) jakarta.portlet.RenderURLcreateRenderURL(jakarta.portlet.MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURLcreateRenderURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) jakarta.portlet.ResourceURLcom.liferay.portal.kernel.portlet.LiferayPortletURLcreateResourceURL(String portletName) voidintjakarta.portlet.CacheControljakarta.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 jakarta.portlet.PortletMode> collection) voidsetProperty(String key, String value) voidvoidsetURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) voidtransferHeaders(jakarta.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(jakarta.servlet.http.Cookie cookie) - Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
addProperty
- Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
addProperty
- Specified by:
addPropertyin interfacejakarta.portlet.PortletResponse
-
createActionURL
public <T extends jakarta.portlet.PortletURL & jakarta.portlet.ActionURL> T createActionURL()- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createActionURLin interfacejakarta.portlet.MimeResponse
-
createActionURL
public jakarta.portlet.ActionURL createActionURL(jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createActionURLin interfacejakarta.portlet.MimeResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElementin interfacejakarta.portlet.PortletResponse- 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, jakarta.portlet.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, jakarta.portlet.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, jakarta.portlet.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 interfacejakarta.portlet.MimeResponse
-
createRenderURL
public jakarta.portlet.RenderURL createRenderURL(jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createRenderURLin interfacejakarta.portlet.MimeResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, jakarta.portlet.MimeResponse.Copy copy) - Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
public jakarta.portlet.ResourceURL createResourceURL()- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createResourceURLin interfacejakarta.portlet.MimeResponse
-
createResourceURL
- Specified by:
createResourceURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURLin interfacejakarta.portlet.PortletResponse
-
flushBuffer
- Specified by:
flushBufferin interfacejakarta.portlet.MimeResponse- Throws:
IOException
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSizein interfacejakarta.portlet.MimeResponse
-
getCacheControl
public jakarta.portlet.CacheControl getCacheControl()- Specified by:
getCacheControlin interfacejakarta.portlet.MimeResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfacejakarta.portlet.MimeResponse
-
getContentType
- Specified by:
getContentTypein interfacejakarta.portlet.MimeResponse
-
getHttpServletResponse
public jakarta.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 interfacejakarta.portlet.MimeResponse
-
getNamespace
- Specified by:
getNamespacein interfacejakarta.portlet.PortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortletin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletOutputStream
- Specified by:
getPortletOutputStreamin interfacejakarta.portlet.MimeResponse- Throws:
IOException
-
getProperties
- Specified by:
getPropertiesin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getPropertyin interfacejakarta.portlet.PortletResponse
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacejakarta.portlet.PortletResponse
-
getPropertyValues
- Specified by:
getPropertyValuesin interfacejakarta.portlet.PortletResponse
-
getWriter
- Specified by:
getWriterin interfacejakarta.portlet.MimeResponse- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfacejakarta.portlet.MimeResponse
-
reset
public void reset()- Specified by:
resetin interfacejakarta.portlet.MimeResponse
-
resetBuffer
public void resetBuffer()- Specified by:
resetBufferin interfacejakarta.portlet.MimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSizein interfacejakarta.portlet.MimeResponse
-
setContentType
- Specified by:
setContentTypein interfacejakarta.portlet.MimeResponse- Specified by:
setContentTypein interfacejakarta.portlet.RenderResponse
-
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
public void setNextPossiblePortletModes(Collection<? extends jakarta.portlet.PortletMode> collection) - Specified by:
setNextPossiblePortletModesin interfacejakarta.portlet.RenderResponse
-
setProperty
- Specified by:
setPropertyin interfacejakarta.portlet.PortletResponse
-
setTitle
- Specified by:
setTitlein interfacejakarta.portlet.RenderResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoderin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferHeaders
public void transferHeaders(jakarta.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
-