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