Top Description Constructors Methods
javax.portlet.filter

public Class ActionRequestWrapper

extends ClientDataRequestWrapper
implements ActionRequest
Class Inheritance
All Implemented Interfaces
javax.portlet.ActionRequest, javax.portlet.ClientDataRequest, javax.portlet.PortletRequest, javax.portlet.RenderState
Imports
javax.portlet.ActionParameters, .ActionRequest

The ActionRequestWrapper provides a convenient implementation of the ActionRequest interface that can be subclassed by developers. This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped request object.
Since
2.0
See Also
ActionRequest

Constructor Summary

AccessConstructor and Description
public
ActionRequestWrapper(ActionRequest
the action request to wrap
request
)

Creates an ActionRequest adaptor wrapping the given request object.

Method Summary

Modifier and TypeMethod and Description
public ActionParameters
getActionParameters()

Implements javax.portlet.ActionRequest.getActionParameters.

Gets the action parameters set for this request.
public ActionRequest

Returns:

the wrapped request
getRequest
()

Overrides javax.portlet.filter.ClientDataRequestWrapper.getRequest.

Return the wrapped request object.
public void
setRequest(ActionRequest
the request to set
request
)

Sets the request object being wrapped.

Inherited from javax.portlet.filter.ClientDataRequestWrapper:
getCharacterEncodinggetContentLengthgetContentLengthLonggetContentTypegetMethodgetPartgetPartsgetPortletInputStreamgetReadersetCharacterEncodingsetRequest

Constructor Detail

ActionRequestWrapperback to summary
public ActionRequestWrapper(ActionRequest request)

Creates an ActionRequest adaptor wrapping the given request object.

Parameters
request:ActionRequest

the action request to wrap

Exceptions
IllegalArgumentException:
if the request is null

Method Detail

getActionParametersback to summary
public ActionParameters getActionParameters()

Implements javax.portlet.ActionRequest.getActionParameters.

Doc from javax.portlet.ActionRequest.getActionParameters.

Gets the action parameters set for this request.

Action parameters are additional portlet parameters added to the URL triggering the request that extend the state information provided by the render parameters.

Action parameters can also contain information provided by the client, for example, form parameters provided when a form is submitted.

PortletParameters provides a description of the parameter concept.

Returns:ActionParameters

an immutable object representing the action parameters

Annotations
@Override
getRequestback to summary
public ActionRequest getRequest()

Overrides javax.portlet.filter.ClientDataRequestWrapper.getRequest.

Return the wrapped request object.

Returns:ActionRequest

the wrapped request

setRequestback to summary
public void setRequest(ActionRequest request)

Sets the request object being wrapped.

Parameters
request:ActionRequest

the request to set

Exceptions
IllegalArgumentException:
if the request is null.