Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.1-286-COMPATIBILITY, 2.0.0
-
None
Description
PLT.11.1.3.4 The Lifecycle Phase Request Attribute
The LIFECYCLE_PHASE request attribute of the PortletRequest interface allows a portlet
to determine the current lifecycle phase of this request. This attribute value must be
ACTION_PHASE if the current request is of type ActionRequest, EVENT_PHASE if the
current request is of type EventRequest, RENDER_PHASE if the current request is of type
RenderRequest, and RESOURCE_SERVING_PHASE if the current request is of type
ResourceRequest.
The main intend of this method is allowing frameworks implemented on-top of the Java
Portlet Specification performing the correct type casts from the
PortletRequest/PortletResponse to a specific request/response pair, like
ActionRequest/ActionResponse.