public class

MockClientDataRequest

extends MockPortletRequest
java.lang.Object
   ↳ org.springframework.mock.web.portlet.MockPortletRequest
     ↳ org.springframework.mock.web.portlet.MockClientDataRequest
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Mock implementation of the javax.portlet.ClientDataRequest interface.

Summary

Public Constructors
MockClientDataRequest()
Create a new MockClientDataRequest with a default MockPortalContext and a default MockPortletContext.
MockClientDataRequest(PortletContext portletContext)
Create a new MockClientDataRequest with a default MockPortalContext.
MockClientDataRequest(PortalContext portalContext, PortletContext portletContext)
Create a new MockClientDataRequest.
Public Methods
String getCharacterEncoding()
int getContentLength()
String getContentType()
String getMethod()
InputStream getPortletInputStream()
BufferedReader getReader()
void setCharacterEncoding(String characterEncoding)
void setContent(byte[] content)
void setContentType(String contentType)
void setMethod(String method)
[Expand]
Inherited Methods
From class org.springframework.mock.web.portlet.MockPortletRequest
From class java.lang.Object

Public Constructors

public MockClientDataRequest ()

Create a new MockClientDataRequest with a default MockPortalContext and a default MockPortletContext.

public MockClientDataRequest (PortletContext portletContext)

Create a new MockClientDataRequest with a default MockPortalContext.

Parameters
portletContext the PortletContext that the request runs in

public MockClientDataRequest (PortalContext portalContext, PortletContext portletContext)

Create a new MockClientDataRequest.

Parameters
portalContext the PortalContext that the request runs in
portletContext the PortletContext that the request runs in

Public Methods

public String getCharacterEncoding ()

public int getContentLength ()

public String getContentType ()

public String getMethod ()

public InputStream getPortletInputStream ()

Throws
IOException

public BufferedReader getReader ()

public void setCharacterEncoding (String characterEncoding)

public void setContent (byte[] content)

public void setContentType (String contentType)

public void setMethod (String method)