Interface RequestMethodChecker

All Known Implementing Classes:
DefaultRequestMethodChecker

@PublicApi public interface RequestMethodChecker
Checks that a web-request (WebWork action) has been invoked with the correct request method.
Since:
9.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    checkActionInvocation(webwork.action.Action action, String requestMethod)
    Checks that the action about to be executed has been invoked within the correct request method.
  • Method Details

    • checkActionInvocation

      RequestMethodCheckResult checkActionInvocation(@Nonnull webwork.action.Action action, @Nonnull String requestMethod)
      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.
      Parameters:
      action - the ActionSupport in play. Cannot be null.
      requestMethod - request method action was called within
      Returns:
      result of request method check