Package org.kohsuke.stapler.interceptor
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 Summary
Modifier and TypeMethodDescriptionReturn theForwardToViewshowing a custom error page forRequirePOSTannotated methods.
-
Method Details
-
getForwardView
Return theForwardToViewshowing a custom error page forRequirePOSTannotated 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.
-