Class DefaultRequestMethodChecker

java.lang.Object
com.atlassian.jira.security.ActionInvocationCheckerBase
com.atlassian.jira.security.request.DefaultRequestMethodChecker
All Implemented Interfaces:
RequestMethodChecker

public class DefaultRequestMethodChecker extends ActionInvocationCheckerBase implements RequestMethodChecker
  • Constructor Details

    • DefaultRequestMethodChecker

      public DefaultRequestMethodChecker()
  • Method Details

    • checkActionInvocation

      public RequestMethodCheckResult checkActionInvocation(@Nonnull webwork.action.Action action, @Nonnull String requestMethod)
      Description copied from interface: RequestMethodChecker
      Checks that the action about to be executed has been invoked within the correct request method. This method will perform the check for all "commands" even if they are not annotated with SupportedMethods. For "commands" with missing SupportedMethods checker assume that "command" can be invoked only with POST method.
      Specified by:
      checkActionInvocation in interface RequestMethodChecker
      Parameters:
      action - the ActionSupport in play. Cannot be null.
      requestMethod - request method action was called within
      Returns:
      result of request method check