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