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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ForwardToView
getForwardView()
Return theForwardToView
showing a custom error page forRequirePOST
annotated methods.
-
-
-
Method Detail
-
getForwardView
@CheckForNull ForwardToView 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.
-
-