Class XsrfErrorAction

java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.XsrfErrorAction
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class XsrfErrorAction extends JiraWebActionSupport
This action is usually run via a servlet FORWARD. It will look at the request attributes under javax.servlet.forward to figure out what the original request was.
Since:
v4.1
See Also:
  • Field Details

    • FORWARD_PATH

      public static final String FORWARD_PATH
      The path to use when forwarding to this action.
  • Constructor Details

  • Method Details

    • doExecute

      protected String doExecute() throws Exception
      Overrides:
      doExecute in class webwork.action.ActionSupport
      Throws:
      Exception
    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface webwork.action.Action
      Overrides:
      execute in class JiraWebActionSupport
      Throws:
      Exception
    • isHasRedirectUrl

      public boolean isHasRedirectUrl()
    • getEncodedRedirectUrl

      public String getEncodedRedirectUrl()
    • getSessionTimeoutDuration

      public String getSessionTimeoutDuration()
    • getSessionTimeoutUnit

      public String getSessionTimeoutUnit()
    • isSessionExpired

      public boolean isSessionExpired()
    • getRequestURL

      public String getRequestURL()
      Returns url to return to once token is re-issued. This method utilises RedirectSanitiser to make sure returned url is safe (e.g. not a different host). It will default to the safe FORWARD_PATH should forward request URI be considered unsafe.
      Returns:
      String URL to redirect to
    • isSafeToRedirect

      public boolean isSafeToRedirect()
    • getForwardRequestUri

      public String getForwardRequestUri()
    • getRequestMethod

      public String getRequestMethod()
    • getNoRequestParameters

      public boolean getNoRequestParameters()
    • isRequestParamsDisplayEnabled

      public boolean isRequestParamsDisplayEnabled()
    • getRequestParameters

      public Set<Map.Entry<String,List<String>>> getRequestParameters()