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_CONTENTFields inherited from interface javax.portlet.ResourceResponse
HTTP_STATUS_CODE -
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) <T extends PortletURL & RenderURL>
Tcom.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) intbooleanvoidreset()voidvoidsetBufferSize(int bufferSize) voidsetCharacterEncoding(String characterEncoding) voidsetContentLength(int contentLength) voidsetContentLengthLong(long contentLength) voidsetContentType(String contentType) voidsetDateHeader(String name, long date) voidvoidsetIntHeader(String name, int value) voidvoidsetProperty(String property, String value) voidsetStatus(int status) voidsetURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder) voidtransferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse) void
-
Constructor Details
-
MockLiferayResourceResponse
public MockLiferayResourceResponse()
-
-
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- Specified by:
createActionURLin interfaceResourceResponse
-
createActionURL
- Specified by:
createActionURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createActionURLin interfaceMimeResponse- Specified by:
createActionURLin interfaceResourceResponse
-
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- Specified by:
createRenderURLin interfaceResourceResponse
-
createRenderURL
- Specified by:
createRenderURLin interfacecom.liferay.portal.kernel.portlet.LiferayPortletResponse- Specified by:
createRenderURLin interfaceMimeResponse- Specified by:
createRenderURLin interfaceResourceResponse
-
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- Specified by:
createResourceURLin interfaceResourceResponse
-
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
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceResourceResponse
-
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
-
setCharacterEncoding
- Specified by:
setCharacterEncodingin interfaceResourceResponse
-
setContentLength
public void setContentLength(int contentLength) - Specified by:
setContentLengthin interfaceResourceResponse
-
setContentLengthLong
public void setContentLengthLong(long contentLength) - Specified by:
setContentLengthLongin interfaceResourceResponse
-
setContentType
- Specified by:
setContentTypein interfaceMimeResponse
-
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
-
setLocale
- Specified by:
setLocalein interfaceResourceResponse
-
setProperty
- Specified by:
setPropertyin interfacePortletResponse
-
setStatus
public void setStatus(int status) - Specified by:
setStatusin interfaceResourceResponse
-
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
-