Package com.atlassian.bamboo.ww2.results
Class ReturnableRedirectResult
java.lang.Object
org.apache.struts2.result.StrutsResultSupport
org.apache.struts2.result.ServletRedirectResult
com.atlassian.bamboo.ww2.results.ReturnableRedirectResult
- All Implemented Interfaces:
Serializable,org.apache.struts2.result.Redirectable,org.apache.struts2.result.Result,org.apache.struts2.StrutsStatics,org.apache.struts2.util.reflection.ReflectionExceptionHandler
public class ReturnableRedirectResult
extends org.apache.struts2.result.ServletRedirectResult
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts2.result.ServletRedirectResult
actionMapper, anchor, prependServletContext, requestParameters, statusCode, suppressEmptyParametersFields inherited from class org.apache.struts2.result.StrutsResultSupport
DEFAULT_PARAM, DEFAULT_URL_ENCODING, parseLocationFields inherited from interface org.apache.struts2.StrutsStatics
ACTION_MAPPING, HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThe redirect can be bypassed by using one of the following modes as the value when passing theFreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODEparameter in the query string:FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSONSends back JSON Object found in the response with content-typeJSONResult.getContentType()FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTMLSends back JSON Object found in the response with content-typeJSONAsHTMLResult.CONTENT_TYPEvoidsetObjectFactory(org.apache.struts2.ObjectFactory objectFactory) Methods inherited from class org.apache.struts2.result.ServletRedirectResult
addParameter, execute, getProhibitedResultParams, handle, isPathUrl, sendRedirect, setActionMapper, setAnchor, setPrependServletContext, setQueryStringBuilder, setStatusCode, setSuppressEmptyParametersMethods inherited from class org.apache.struts2.result.StrutsResultSupport
conditionalParse, conditionalParseCollection, getLastFinalLocation, getLocation, setEncode, setLocation, setParse
-
Constructor Details
-
ReturnableRedirectResult
public ReturnableRedirectResult()
-
-
Method Details
-
doExecute
protected void doExecute(String finalLocation, org.apache.struts2.ActionInvocation invocation) throws Exception The redirect can be bypassed by using one of the following modes as the value when passing theFreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODEparameter in the query string:FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON- Sends back JSON Object found in the response with content-type
JSONResult.getContentType() FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML- Sends back JSON Object found in the response with content-type
JSONAsHTMLResult.CONTENT_TYPE
- Overrides:
doExecutein classorg.apache.struts2.result.ServletRedirectResult- Parameters:
finalLocation-invocation-- Throws:
Exception
-
setObjectFactory
public void setObjectFactory(org.apache.struts2.ObjectFactory objectFactory)
-