Interface RequirePOST.ErrorCustomizer

Enclosing class:
RequirePOST

public static interface RequirePOST.ErrorCustomizer
Allows customizing the error page shown when an annotated method is called with the wrong HTTP method.
  • Method Details

    • getForwardView

      @CheckForNull ForwardToView getForwardView()
      Return the ForwardToView showing a custom error page for RequirePOST annotated methods. This is typically used to show a form with a "Try again using POST" button.

      Implementations are looked up using ServiceLoader, the first implementation to return a non-null value will be used.