public class MockRenderResponse extends MockMimeResponse implements RenderResponse
RenderResponse
interface.CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
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 |
---|---|
Collection<PortletMode> |
getNextPossiblePortletModes() |
String |
getTitle() |
void |
setNextPossiblePortletModes(Collection<PortletMode> portletModes) |
void |
setTitle(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContentType
createActionURL, createRenderURL, createResourceURL, flushBuffer, getBufferSize, getCacheControl, getCharacterEncoding, getContentType, getLocale, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize
addProperty, addProperty, addProperty, createElement, encodeURL, getNamespace, setProperty
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(String title)
setTitle
in interface RenderResponse
public String getTitle()
public void setNextPossiblePortletModes(Collection<PortletMode> portletModes)
setNextPossiblePortletModes
in interface RenderResponse
public Collection<PortletMode> getNextPossiblePortletModes()