Class RedirectWithFlashResult

java.lang.Object
org.apache.struts2.result.StrutsResultSupport
org.apache.struts2.result.ServletRedirectResult
com.atlassian.confluence.struts.flash.RedirectWithFlashResult
All Implemented Interfaces:
com.opensymphony.xwork2.Result, com.opensymphony.xwork2.util.reflection.ReflectionExceptionHandler, Serializable, org.apache.struts2.result.Redirectable, org.apache.struts2.result.Result, org.apache.struts2.StrutsStatics

public class RedirectWithFlashResult extends org.apache.struts2.result.ServletRedirectResult
Takes Flash scope objects from the current request and puts them on the session.

Adds a unique flashId request parameter to ensure that multiple requests within a single session do not leak data.

Since:
9.3
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.opensymphony.xwork2.Result

    com.opensymphony.xwork2.Result.LegacyAdapter
  • Field Summary

    Fields inherited from class org.apache.struts2.result.ServletRedirectResult

    actionMapper, anchor, prependServletContext, requestParameters, statusCode, suppressEmptyParameters

    Fields inherited from class org.apache.struts2.result.StrutsResultSupport

    DEFAULT_PARAM, DEFAULT_URL_ENCODING, parseLocation

    Fields inherited from interface org.apache.struts2.StrutsStatics

    ACTION_MAPPING, HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doExecute(String redirectUrl, org.apache.struts2.ActionInvocation actionInvocation)
     

    Methods inherited from class org.apache.struts2.result.ServletRedirectResult

    addParameter, doExecute, execute, getProhibitedResultParams, handle, isPathUrl, sendRedirect, setActionMapper, setAnchor, setPrependServletContext, setQueryStringBuilder, setStatusCode, setSuppressEmptyParameters

    Methods inherited from class org.apache.struts2.result.StrutsResultSupport

    conditionalParse, conditionalParseCollection, getLastFinalLocation, getLocation, setEncode, setLocation, setParse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.opensymphony.xwork2.Result

    execute
  • Constructor Details

    • RedirectWithFlashResult

      public RedirectWithFlashResult()
  • Method Details

    • doExecute

      protected void doExecute(String redirectUrl, org.apache.struts2.ActionInvocation actionInvocation) throws Exception
      Overrides:
      doExecute in class org.apache.struts2.result.StrutsResultSupport
      Throws:
      Exception