org.springframework.mock.web.portlet
Class MockRenderResponse

java.lang.Object
  extended by org.springframework.mock.web.portlet.MockPortletResponse
      extended by org.springframework.mock.web.portlet.MockMimeResponse
          extended by org.springframework.mock.web.portlet.MockRenderResponse
All Implemented Interfaces:
MimeResponse, PortletResponse, RenderResponse

public class MockRenderResponse
extends MockMimeResponse
implements RenderResponse

Mock implementation of the RenderResponse interface.

Since:
2.0
Author:
John A. Lewis, Juergen Hoeller

Field Summary
 
Fields inherited from interface javax.portlet.RenderResponse
EXPIRATION_CACHE
 
Fields inherited from interface javax.portlet.MimeResponse
CACHE_SCOPE, ETAG, EXPIRATION_CACHE, MARKUP_HEAD_ELEMENT, NAMESPACED_RESPONSE, PRIVATE_SCOPE, PUBLIC_SCOPE, USE_CACHED_CONTENT
 
Constructor Summary
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.
 
Method Summary
 Collection<PortletMode> getNextPossiblePortletModes()
           
 String getTitle()
           
 void setNextPossiblePortletModes(Collection<PortletMode> portletModes)
           
 void setTitle(String title)
           
 
Methods inherited from class org.springframework.mock.web.portlet.MockMimeResponse
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
 
Methods inherited from class org.springframework.mock.web.portlet.MockPortletResponse
addProperty, addProperty, addProperty, createElement, encodeURL, getCookie, getCookies, getNamespace, getPortalContext, getProperties, getProperty, getPropertyNames, getXmlProperties, getXmlProperty, getXmlPropertyNames, setNamespace, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.portlet.RenderResponse
createActionURL, createRenderURL, flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getNamespace, getPortletOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setContentType
 
Methods inherited from interface javax.portlet.PortletResponse
addProperty, encodeURL, setProperty
 

Constructor Detail

MockRenderResponse

public MockRenderResponse()
Create a new MockRenderResponse with a default MockPortalContext.

See Also:
MockPortalContext

MockRenderResponse

public MockRenderResponse(PortalContext portalContext)
Create a new MockRenderResponse.

Parameters:
portalContext - the PortalContext defining the supported PortletModes and WindowStates

MockRenderResponse

public MockRenderResponse(PortalContext portalContext,
                          RenderRequest request)
Create a new MockRenderResponse.

Parameters:
portalContext - the PortalContext defining the supported PortletModes and WindowStates
request - the corresponding render request that this response is generated for
Method Detail

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface RenderResponse

getTitle

public String getTitle()

setNextPossiblePortletModes

public void setNextPossiblePortletModes(Collection<PortletMode> portletModes)

getNextPossiblePortletModes

public Collection<PortletMode> getNextPossiblePortletModes()