public class ReturnableRedirectResult
extends org.apache.struts2.result.ServletRedirectResult
actionMapper, anchor, prependServletContext, requestParameters, statusCode, suppressEmptyParameters
Constructor and Description |
---|
ReturnableRedirectResult() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(String finalLocation,
com.opensymphony.xwork2.ActionInvocation invocation)
The redirect can be bypassed by using one of the following modes as the value when passing the
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE parameter in the query string:
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON
Sends back JSON Object found in the response with content-type JSONResult.contentType
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML
Sends back JSON Object found in the response with content-type JSONAsHTMLResult.CONTENT_TYPE
|
void |
setObjectFactory(com.opensymphony.xwork2.ObjectFactory objectFactory) |
addParameter, execute, getProhibitedResultParams, handle, isPathUrl, sendRedirect, setActionMapper, setAnchor, setPrependServletContext, setStatusCode, setSuppressEmptyParameters, setUrlHelper
protected void doExecute(String finalLocation, com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE
parameter in the query string:
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON
JSONResult.contentType
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML
JSONAsHTMLResult.CONTENT_TYPE
doExecute
in class org.apache.struts2.result.ServletRedirectResult
finalLocation
- invocation
- Exception
public void setObjectFactory(com.opensymphony.xwork2.ObjectFactory objectFactory)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.