ActionResponseWrapper provides a convenient
implementation of the ActionResponse interface
that can be subclassed by developers.
This class implements the Wrapper or Decorator pattern.
Methods default to calling through to the wrapped response object.
ActionResponse
| Access | Constructor and Description |
|---|---|
| public | ActionResponseWrapper(ActionResponse
the action response to wrap response)Creates an |
| Modifier and Type | Method and Description |
|---|---|
| public RenderURL | createRedirectURL(MimeResponse.
Specifies how current parameters are to be copied to the URL optionImplements javax.
Returns a render URL containing render parameters according to the
MimeResponse.Copy argument.
|
| public ActionResponse | Returns: the wrapped responseOverrides javax. |
| public void | sendRedirect(String
the redirect location URL location)Implements javax. |
| public void | sendRedirect(String
the redirect location URL location, String name of the query parameter under which the portlet container should
store a render URL to this portlet renderUrlParamName)Implements javax. |
| public void |
| ActionResponseWrapper | back to summary |
|---|---|
| public ActionResponseWrapper(ActionResponse response) Creates an
| |
| createRedirectURL | back to summary |
|---|---|
| public RenderURL createRedirectURL(MimeResponse. Implements javax. Doc from javax.
Returns a render URL containing render parameters according to the
MimeResponse.Copy argument. The portlet may modify the returned render URL. The
URL is intended to be used in the sendRedirect(String location) method to allow
the portlet to force a redirect to the same page with modified render state. * Creates a render URL targeting the current portlet.
The createRedirectURL method cannot be invoked after any of the following methods of the ActionResponse interface has been called:
The new render URL will contain render parameters from the
current request as specified by the
If a public render parameter value is set or removed on a render URL, then the public render parameter will be set to the new value or removed when the URL is activated.
| |
| getResponse | back to summary |
|---|---|
| public ActionResponse getResponse() Overrides javax. Return the wrapped response object.
| |
| sendRedirect | back to summary |
|---|---|
| public void sendRedirect(String location) throws IOException Implements javax. Doc from javax. Instructs the portlet container to send a redirect response to the client using the specified redirect location URL.
This method only accepts an absolute URL (e.g.
The sendRedirect method cannot be invoked after any of the following methods of the ActionResponse interface has been called:
| |
| sendRedirect | back to summary |
|---|---|
| public void sendRedirect(String location, String renderUrlParamName) throws IOException Implements javax. Doc from javax. Instructs the portlet container to send a redirect response to the client using the specified redirect location URL and encode a render URL as parameter on the redirect URL.
This method only accepts an absolute URL (e.g.
The portlet container will attach a render URL with the currently set portlet mode, window state
and render parameters on the New values for
| |
| setResponse | back to summary |
|---|---|
| public void setResponse(ActionResponse response) Sets the response object being wrapped.
| |