com.atlassian.bamboo.ww2.results
Class ReturnableRedirectResult

java.lang.Object
  extended by com.opensymphony.webwork.dispatcher.WebWorkResultSupport
      extended by com.opensymphony.webwork.dispatcher.ServletRedirectResult
          extended by com.atlassian.bamboo.ww2.results.ReturnableRedirectResult
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, com.opensymphony.xwork.Result, java.io.Serializable

public class ReturnableRedirectResult
extends com.opensymphony.webwork.dispatcher.ServletRedirectResult

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.webwork.dispatcher.ServletRedirectResult
prependServletContext
 
Fields inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
DEFAULT_PARAM, encode, location, parse
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER
 
Constructor Summary
ReturnableRedirectResult()
           
 
Method Summary
protected  void doExecute(java.lang.String finalLocation, com.opensymphony.xwork.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
 
Methods inherited from class com.opensymphony.webwork.dispatcher.ServletRedirectResult
setPrependServletContext
 
Methods inherited from class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
conditionalParse, execute, setEncode, setLocation, setParse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnableRedirectResult

public ReturnableRedirectResult()
Method Detail

doExecute

protected void doExecute(java.lang.String finalLocation,
                         com.opensymphony.xwork.ActionInvocation invocation)
                  throws java.lang.Exception
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

Overrides:
doExecute in class com.opensymphony.webwork.dispatcher.ServletRedirectResult
Parameters:
finalLocation -
invocation -
Throws:
java.lang.Exception


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.