Class MockLiferayResourceResponse
Object
com.liferay.portal.kernel.test.portlet.MockLiferayResourceResponse
- All Implemented Interfaces:
com.liferay.portal.kernel.portlet.LiferayPortletResponse
,MimeResponse
,PortletResponse
,ResourceResponse
public class MockLiferayResourceResponse
extends Object
implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, ResourceResponse
- Author:
- Cristina González
-
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
Fields inherited from interface javax.portlet.ResourceResponse
HTTP_STATUS_CODE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDateHeader
(String name, long date) void
void
addIntHeader
(String name, int value) void
addProperty
(String name, String value) void
addProperty
(String name, Element element) void
addProperty
(javax.servlet.http.Cookie cookie) <T extends PortletURL & ActionURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createActionURL
(String portletName, MimeResponse.Copy copy) createElement
(String tagName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(long plid, String portletName, String lifecycle, MimeResponse.Copy copy, boolean includeLinkToLayoutUuid) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle) com.liferay.portal.kernel.portlet.LiferayPortletURL
createLiferayPortletURL
(String portletName, String lifecycle, MimeResponse.Copy copy) <T extends PortletURL & RenderURL>
Tcom.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName) com.liferay.portal.kernel.portlet.LiferayPortletURL
createRenderURL
(String portletName, MimeResponse.Copy copy) com.liferay.portal.kernel.portlet.LiferayPortletURL
createResourceURL
(String portletName) void
int
javax.servlet.http.HttpServletResponse
com.liferay.portal.kernel.model.Portlet
getProperty
(String name) getPropertyValues
(String key) int
boolean
void
reset()
void
void
setBufferSize
(int bufferSize) void
setCharacterEncoding
(String characterEncoding) void
setContentLength
(int contentLength) void
setContentLengthLong
(long contentLength) void
setContentType
(String contentType) void
setDateHeader
(String name, long date) void
void
setIntHeader
(String name, int value) void
void
setProperty
(String property, String value) void
setStatus
(int status) void
setURLEncoder
(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) void
transferHeaders
(javax.servlet.http.HttpServletResponse httpServletResponse) void
-
Constructor Details
-
MockLiferayResourceResponse
public MockLiferayResourceResponse()
-
-
Method Details
-
addDateHeader
- Specified by:
addDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addHeader
- Specified by:
addHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
addIntHeader
- Specified by:
addIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
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
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
createActionURL
in interfaceMimeResponse
- Specified by:
createActionURL
in interfaceResourceResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
createActionURL
in interfaceMimeResponse
- Specified by:
createActionURL
in interfaceResourceResponse
-
createActionURL
- Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createActionURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName, MimeResponse.Copy copy) - Specified by:
createActionURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createElement
- Specified by:
createElement
in interfacePortletResponse
- Throws:
DOMException
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid, String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in 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:
createLiferayPortletURL
in 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:
createLiferayPortletURL
in 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:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createLiferayPortletURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName, String lifecycle, MimeResponse.Copy copy) - Specified by:
createLiferayPortletURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
createRenderURL
in interfaceMimeResponse
- Specified by:
createRenderURL
in interfaceResourceResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
createRenderURL
in interfaceMimeResponse
- Specified by:
createRenderURL
in interfaceResourceResponse
-
createRenderURL
- Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createRenderURL
public com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName, MimeResponse.Copy copy) - Specified by:
createRenderURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
- Specified by:
createResourceURL
in interfaceMimeResponse
- Specified by:
createResourceURL
in interfaceResourceResponse
-
createResourceURL
- Specified by:
createResourceURL
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
encodeURL
- Specified by:
encodeURL
in interfacePortletResponse
-
flushBuffer
- Specified by:
flushBuffer
in interfaceMimeResponse
- Throws:
IOException
-
getBufferSize
public int getBufferSize()- Specified by:
getBufferSize
in interfaceMimeResponse
-
getCacheControl
- Specified by:
getCacheControl
in interfaceMimeResponse
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceMimeResponse
-
getContentType
- Specified by:
getContentType
in interfaceMimeResponse
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()- Specified by:
getHttpServletResponse
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLifecycle
- Specified by:
getLifecycle
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getLocale
- Specified by:
getLocale
in interfaceMimeResponse
-
getNamespace
- Specified by:
getNamespace
in interfacePortletResponse
-
getPortlet
public com.liferay.portal.kernel.model.Portlet getPortlet()- Specified by:
getPortlet
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getPortletOutputStream
- Specified by:
getPortletOutputStream
in interfaceMimeResponse
- Throws:
IOException
-
getProperties
- Specified by:
getProperties
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
getProperty
- Specified by:
getProperty
in interfacePortletResponse
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePortletResponse
-
getPropertyValues
- Specified by:
getPropertyValues
in interfacePortletResponse
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceResourceResponse
-
getWriter
- Specified by:
getWriter
in interfaceMimeResponse
- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceMimeResponse
-
reset
public void reset()- Specified by:
reset
in interfaceMimeResponse
-
resetBuffer
public void resetBuffer()- Specified by:
resetBuffer
in interfaceMimeResponse
-
setBufferSize
public void setBufferSize(int bufferSize) - Specified by:
setBufferSize
in interfaceMimeResponse
-
setCharacterEncoding
- Specified by:
setCharacterEncoding
in interfaceResourceResponse
-
setContentLength
public void setContentLength(int contentLength) - Specified by:
setContentLength
in interfaceResourceResponse
-
setContentLengthLong
public void setContentLengthLong(long contentLength) - Specified by:
setContentLengthLong
in interfaceResourceResponse
-
setContentType
- Specified by:
setContentType
in interfaceMimeResponse
-
setDateHeader
- Specified by:
setDateHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setHeader
- Specified by:
setHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setIntHeader
- Specified by:
setIntHeader
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
setLocale
- Specified by:
setLocale
in interfaceResourceResponse
-
setProperty
- Specified by:
setProperty
in interfacePortletResponse
-
setStatus
public void setStatus(int status) - Specified by:
setStatus
in interfaceResourceResponse
-
setURLEncoder
public void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) - Specified by:
setURLEncoder
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferHeaders
public void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) - Specified by:
transferHeaders
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-
transferMarkupHeadElements
public void transferMarkupHeadElements()- Specified by:
transferMarkupHeadElements
in interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse
-