org.springframework.mock.web.portlet
Class MockRenderResponse
java.lang.Object
org.springframework.mock.web.portlet.MockPortletResponse
org.springframework.mock.web.portlet.MockRenderResponse
- All Implemented Interfaces:
- PortletResponse, RenderResponse
public class MockRenderResponse
- extends MockPortletResponse
- implements RenderResponse
Mock implementation of the RenderResponse
interface.
- Since:
- 2.0
- Author:
- John A. Lewis, Juergen Hoeller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getContentType
public String getContentType()
- Specified by:
getContentType
in interface RenderResponse
createRenderURL
public PortletURL createRenderURL()
- Specified by:
createRenderURL
in interface RenderResponse
createActionURL
public PortletURL createActionURL()
- Specified by:
createActionURL
in interface RenderResponse
getNamespace
public String getNamespace()
- Specified by:
getNamespace
in interface RenderResponse
setTitle
public void setTitle(String title)
- Specified by:
setTitle
in interface RenderResponse
getTitle
public String getTitle()
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in interface RenderResponse
setCharacterEncoding
public void setCharacterEncoding(String characterEncoding)
getCharacterEncoding
public String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interface RenderResponse
getWriter
public PrintWriter getWriter()
throws UnsupportedEncodingException
- Specified by:
getWriter
in interface RenderResponse
- Throws:
UnsupportedEncodingException
getContentAsByteArray
public byte[] getContentAsByteArray()
getContentAsString
public String getContentAsString()
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
setLocale
public void setLocale(Locale locale)
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interface RenderResponse
setBufferSize
public void setBufferSize(int bufferSize)
- Specified by:
setBufferSize
in interface RenderResponse
getBufferSize
public int getBufferSize()
- Specified by:
getBufferSize
in interface RenderResponse
flushBuffer
public void flushBuffer()
- Specified by:
flushBuffer
in interface RenderResponse
resetBuffer
public void resetBuffer()
- Specified by:
resetBuffer
in interface RenderResponse
setCommitted
public void setCommitted(boolean committed)
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interface RenderResponse
reset
public void reset()
- Specified by:
reset
in interface RenderResponse
getPortletOutputStream
public OutputStream getPortletOutputStream()
throws IOException
- Specified by:
getPortletOutputStream
in interface RenderResponse
- Throws:
IOException
setIncludedUrl
public void setIncludedUrl(String includedUrl)
getIncludedUrl
public String getIncludedUrl()
Copyright © 2002-2007 The Spring Framework.