public class

MockEventRequest

extends MockPortletRequest
java.lang.Object
   ↳ org.springframework.mock.web.portlet.MockPortletRequest
     ↳ org.springframework.mock.web.portlet.MockEventRequest

Class Overview

Mock implementation of the javax.portlet.EventRequest interface.

Summary

Public Constructors
MockEventRequest(Event event)
Create a new MockEventRequest with a default MockPortalContext and a default MockPortletContext.
MockEventRequest(Event event, PortletContext portletContext)
Create a new MockEventRequest with a default MockPortalContext.
MockEventRequest(Event event, PortalContext portalContext, PortletContext portletContext)
Create a new MockEventRequest.
Public Methods
Event getEvent()
String getMethod()
void setMethod(String method)
Protected Methods
String getLifecyclePhase()
Return the Portlet 2.0 lifecycle id for the current phase.
[Expand]
Inherited Methods
From class org.springframework.mock.web.portlet.MockPortletRequest
From class java.lang.Object

Public Constructors

public MockEventRequest (Event event)

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

Parameters
event the event that this request wraps
See Also

public MockEventRequest (Event event, PortletContext portletContext)

Create a new MockEventRequest with a default MockPortalContext.

Parameters
event the event that this request wraps
portletContext the PortletContext that the request runs in
See Also

public MockEventRequest (Event event, PortalContext portalContext, PortletContext portletContext)

Create a new MockEventRequest.

Parameters
event the event that this request wraps
portalContext the PortletContext that the request runs in
portletContext the PortletContext that the request runs in

Public Methods

public Event getEvent ()

public String getMethod ()

public void setMethod (String method)

Protected Methods

protected String getLifecyclePhase ()

Return the Portlet 2.0 lifecycle id for the current phase.