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 theForwardToView
showing a custom error page forRequirePOST
annotated methods.
-
Method Details
-
getForwardView
Return theForwardToView
showing a custom error page forRequirePOST
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.
-