public class MockLiferayPortletRenderResponse extends Object implements com.liferay.portal.kernel.portlet.LiferayPortletResponse, RenderResponse
MimeResponse.Copy
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
Constructor and Description |
---|
MockLiferayPortletRenderResponse() |
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 s,
org.w3c.dom.Element element) |
void |
addProperty(String s,
String s1) |
<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 s) |
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 s) |
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 s) |
Collection<String> |
getPropertyNames() |
Collection<String> |
getPropertyValues(String key) |
PrintWriter |
getWriter() |
boolean |
isCommitted() |
void |
reset() |
void |
resetBuffer() |
void |
setBufferSize(int i) |
void |
setContentType(String contentType) |
void |
setDateHeader(String name,
long date) |
void |
setHeader(String name,
String value) |
void |
setIntHeader(String name,
int value) |
void |
setNextPossiblePortletModes(Collection<? extends PortletMode> collection) |
void |
setProperty(String key,
String value) |
void |
setTitle(String title) |
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 PortletResponse
public void addProperty(String s, org.w3c.dom.Element element)
addProperty
in interface PortletResponse
public void addProperty(String s, String s1)
addProperty
in interface PortletResponse
public <T extends PortletURL & ActionURL> T createActionURL()
createActionURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createActionURL
in interface MimeResponse
public ActionURL createActionURL(MimeResponse.Copy copy)
createActionURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createActionURL
in interface MimeResponse
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, MimeResponse.Copy copy)
createActionURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public org.w3c.dom.Element createElement(String s) throws org.w3c.dom.DOMException
createElement
in interface 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, 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, 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, MimeResponse.Copy copy)
createLiferayPortletURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public <T extends PortletURL & RenderURL> T createRenderURL()
createRenderURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createRenderURL
in interface MimeResponse
public RenderURL createRenderURL(MimeResponse.Copy copy)
createRenderURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createRenderURL
in interface MimeResponse
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, MimeResponse.Copy copy)
createRenderURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public ResourceURL createResourceURL()
createResourceURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
createResourceURL
in interface MimeResponse
public com.liferay.portal.kernel.portlet.LiferayPortletURL createResourceURL(String portletName)
createResourceURL
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public String encodeURL(String s)
encodeURL
in interface PortletResponse
public void flushBuffer() throws IOException
flushBuffer
in interface MimeResponse
IOException
public int getBufferSize()
getBufferSize
in interface MimeResponse
public CacheControl getCacheControl()
getCacheControl
in interface MimeResponse
public String getCharacterEncoding()
getCharacterEncoding
in interface MimeResponse
public String getContentType()
getContentType
in interface 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 MimeResponse
public String getNamespace()
getNamespace
in interface 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 MimeResponse
IOException
public Map<String,String[]> getProperties()
getProperties
in interface com.liferay.portal.kernel.portlet.LiferayPortletResponse
public String getProperty(String s)
getProperty
in interface PortletResponse
public Collection<String> getPropertyNames()
getPropertyNames
in interface PortletResponse
public Collection<String> getPropertyValues(String key)
getPropertyValues
in interface PortletResponse
public PrintWriter getWriter() throws IOException
getWriter
in interface MimeResponse
IOException
public boolean isCommitted()
isCommitted
in interface MimeResponse
public void reset()
reset
in interface MimeResponse
public void resetBuffer()
resetBuffer
in interface MimeResponse
public void setBufferSize(int i)
setBufferSize
in interface MimeResponse
public void setContentType(String contentType)
setContentType
in interface MimeResponse
setContentType
in interface RenderResponse
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 setNextPossiblePortletModes(Collection<? extends PortletMode> collection)
setNextPossiblePortletModes
in interface RenderResponse
public void setProperty(String key, String value)
setProperty
in interface PortletResponse
public void setTitle(String title)
setTitle
in interface RenderResponse
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