public class MockLiferayResourceResponse extends Object implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, ResourceResponse
MimeResponse.CopyHTTP_STATUS_CODECACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT| Constructor and Description |
|---|
MockLiferayResourceResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDateHeader(String name,
long date) |
void |
addHeader(String name,
String value) |
void |
addIntHeader(String name,
int value) |
void |
addProperty(javax.servlet.http.Cookie cookie) |
void |
addProperty(String name,
org.w3c.dom.Element element) |
void |
addProperty(String name,
String value) |
<T extends PortletURL & ActionURL> |
createActionURL() |
ActionURL |
createActionURL(MimeResponse.Copy copy) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createActionURL(String portletName) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createActionURL(String portletName,
MimeResponse.Copy copy) |
org.w3c.dom.Element |
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> |
createRenderURL() |
RenderURL |
createRenderURL(MimeResponse.Copy copy) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createRenderURL(String portletName) |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createRenderURL(String portletName,
MimeResponse.Copy copy) |
ResourceURL |
createResourceURL() |
com.liferay.portal.kernel.portlet.LiferayPortletURL |
createResourceURL(String portletName) |
String |
encodeURL(String url) |
void |
flushBuffer() |
int |
getBufferSize() |
CacheControl |
getCacheControl() |
String |
getCharacterEncoding() |
String |
getContentType() |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse() |
String |
getLifecycle() |
Locale |
getLocale() |
String |
getNamespace() |
com.liferay.portal.kernel.model.Portlet |
getPortlet() |
OutputStream |
getPortletOutputStream() |
Map<String,String[]> |
getProperties() |
String |
getProperty(String name) |
Collection<String> |
getPropertyNames() |
Collection<String> |
getPropertyValues(String key) |
int |
getStatus() |
PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
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 |
setHeader(String name,
String value) |
void |
setIntHeader(String name,
int value) |
void |
setLocale(Locale locale) |
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 |
transferMarkupHeadElements() |
public void addDateHeader(String name,
long date)
addDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addHeader(String name,
String value)
addHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addIntHeader(String name,
int value)
addIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void addProperty(javax.servlet.http.Cookie cookie)
addProperty in interface PortletResponsepublic void addProperty(String name,
org.w3c.dom.Element element)
addProperty in interface PortletResponsepublic void addProperty(String name,
String value)
addProperty in interface PortletResponsepublic <T extends PortletURL & ActionURL> T createActionURL()
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsecreateActionURL in interface MimeResponsecreateActionURL in interface ResourceResponsepublic ActionURL createActionURL(MimeResponse.Copy copy)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsecreateActionURL in interface MimeResponsecreateActionURL in interface ResourceResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createActionURL(String portletName,
MimeResponse.Copy copy)
createActionURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic org.w3c.dom.Element createElement(String tagName)
throws org.w3c.dom.DOMException
createElement in interface PortletResponseorg.w3c.dom.DOMExceptionpublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
boolean includeLinkToLayoutUuid)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
MimeResponse.Copy copy)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(long plid,
String portletName,
String lifecycle,
MimeResponse.Copy copy,
boolean includeLinkToLayoutUuid)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName,
String lifecycle)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createLiferayPortletURL(String portletName,
String lifecycle,
MimeResponse.Copy copy)
createLiferayPortletURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic <T extends PortletURL & RenderURL> T createRenderURL()
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsecreateRenderURL in interface MimeResponsecreateRenderURL in interface ResourceResponsepublic RenderURL createRenderURL(MimeResponse.Copy copy)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsecreateRenderURL in interface MimeResponsecreateRenderURL in interface ResourceResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createRenderURL(String portletName,
MimeResponse.Copy copy)
createRenderURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic ResourceURL createResourceURL()
createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsecreateResourceURL in interface MimeResponsecreateResourceURL in interface ResourceResponsepublic com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
createResourceURL in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String encodeURL(String url)
encodeURL in interface PortletResponsepublic void flushBuffer()
throws IOException
flushBuffer in interface MimeResponseIOExceptionpublic int getBufferSize()
getBufferSize in interface MimeResponsepublic CacheControl getCacheControl()
getCacheControl in interface MimeResponsepublic String getCharacterEncoding()
getCharacterEncoding in interface MimeResponsepublic String getContentType()
getContentType in interface MimeResponsepublic javax.servlet.http.HttpServletResponse getHttpServletResponse()
getHttpServletResponse in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String getLifecycle()
getLifecycle in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic Locale getLocale()
getLocale in interface MimeResponsepublic String getNamespace()
getNamespace in interface PortletResponsepublic com.liferay.portal.kernel.model.Portlet getPortlet()
getPortlet in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic OutputStream getPortletOutputStream()
throws IOException
getPortletOutputStream in interface MimeResponseIOExceptionpublic Map<String,String[]> getProperties()
getProperties in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic String getProperty(String name)
getProperty in interface PortletResponsepublic Collection<String> getPropertyNames()
getPropertyNames in interface PortletResponsepublic Collection<String> getPropertyValues(String key)
getPropertyValues in interface PortletResponsepublic int getStatus()
getStatus in interface ResourceResponsepublic PrintWriter getWriter()
throws IOException
getWriter in interface MimeResponseIOExceptionpublic boolean isCommitted()
isCommitted in interface MimeResponsepublic void reset()
reset in interface MimeResponsepublic void resetBuffer()
resetBuffer in interface MimeResponsepublic void setBufferSize(int bufferSize)
setBufferSize in interface MimeResponsepublic void setCharacterEncoding(String characterEncoding)
setCharacterEncoding in interface ResourceResponsepublic void setContentLength(int contentLength)
setContentLength in interface ResourceResponsepublic void setContentLengthLong(long contentLength)
setContentLengthLong in interface ResourceResponsepublic void setContentType(String contentType)
setContentType in interface MimeResponsepublic void setDateHeader(String name,
long date)
setDateHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setHeader(String name,
String value)
setHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setIntHeader(String name,
int value)
setIntHeader in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void setLocale(Locale locale)
setLocale in interface ResourceResponsepublic void setProperty(String property,
String value)
setProperty in interface PortletResponsepublic void setStatus(int status)
setStatus in interface ResourceResponsepublic void setURLEncoder(com.liferay.portal.kernel.servlet.URLEncoder urlEncoder)
setURLEncoder in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void transferHeaders(javax.servlet.http.HttpServletResponse httpServletResponse)
transferHeaders in interface com.liferay.portal.kernel.portlet.LiferayPortletResponsepublic void transferMarkupHeadElements()
transferMarkupHeadElements in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse