public class MockRenderResponse extends MockMimeResponse
javax.portlet.RenderResponse
interface.Modifier and Type | Field and Description |
---|---|
private java.util.Collection<PortletMode> |
nextPossiblePortletModes |
private java.lang.String |
title |
Constructor and Description |
---|
MockRenderResponse()
Create a new MockRenderResponse with a default
MockPortalContext . |
MockRenderResponse(PortalContext portalContext)
Create a new MockRenderResponse.
|
MockRenderResponse(PortalContext portalContext,
RenderRequest request)
Create a new MockRenderResponse.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<PortletMode> |
getNextPossiblePortletModes() |
java.lang.String |
getTitle() |
void |
setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes) |
void |
setTitle(java.lang.String title) |
createActionURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentAsByteArray, getContentAsString, getContentType, getForwardedUrl, getIncludedUrl, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setCommitted, setContentType, setForwardedUrl, setIncludedUrl, setLocale
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setProperty
private java.lang.String title
private java.util.Collection<PortletMode> nextPossiblePortletModes
public MockRenderResponse()
MockPortalContext
.MockPortalContext
public MockRenderResponse(PortalContext portalContext)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatespublic MockRenderResponse(PortalContext portalContext, RenderRequest request)
portalContext
- the PortalContext defining the supported
PortletModes and WindowStatesrequest
- the corresponding render request that this response
is generated forpublic void setTitle(java.lang.String title)
public java.lang.String getTitle()
public void setNextPossiblePortletModes(java.util.Collection<PortletMode> portletModes)
public java.util.Collection<PortletMode> getNextPossiblePortletModes()