|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.mock.web.portlet.MockPortletRequest
org.springframework.mock.web.portlet.MockActionRequest
public class MockActionRequest
Mock implementation of the ActionRequest interface.
| Field Summary |
|---|
| Fields inherited from interface javax.portlet.PortletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO |
| Constructor Summary | |
|---|---|
MockActionRequest()
Create a new MockActionRequest with a default MockPortalContext
and a default MockPortletContext. |
|
MockActionRequest(PortalContext portalContext,
PortletContext portletContext)
Create a new MockActionRequest. |
|
MockActionRequest(PortletContext portletContext)
Create a new MockActionRequest with a default MockPortalContext. |
|
MockActionRequest(PortletMode portletMode)
Create a new MockActionRequest with a default MockPortalContext
and a default MockPortletContext. |
|
| Method Summary | |
|---|---|
String |
getCharacterEncoding()
|
int |
getContentLength()
|
String |
getContentType()
|
InputStream |
getPortletInputStream()
|
BufferedReader |
getReader()
|
void |
setCharacterEncoding(String characterEncoding)
|
void |
setContent(byte[] content)
|
void |
setContentType(String contentType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockActionRequest()
MockPortalContext
and a default MockPortletContext.
MockPortalContext,
MockPortletContextpublic MockActionRequest(PortletMode portletMode)
MockPortalContext
and a default MockPortletContext.
portletMode - the mode that the portlet runs inpublic MockActionRequest(PortletContext portletContext)
MockPortalContext.
portletContext - the PortletContext that the request runs in
public MockActionRequest(PortalContext portalContext,
PortletContext portletContext)
portalContext - the PortalContext that the request runs inportletContext - the PortletContext that the request runs in| Method Detail |
|---|
public void setContent(byte[] content)
public InputStream getPortletInputStream()
throws IOException
getPortletInputStream in interface ActionRequestIOExceptionpublic void setCharacterEncoding(String characterEncoding)
setCharacterEncoding in interface ActionRequest
public BufferedReader getReader()
throws UnsupportedEncodingException
getReader in interface ActionRequestUnsupportedEncodingExceptionpublic String getCharacterEncoding()
getCharacterEncoding in interface ActionRequestpublic void setContentType(String contentType)
public String getContentType()
getContentType in interface ActionRequestpublic int getContentLength()
getContentLength in interface ActionRequest
|
The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||