Package org.kohsuke.stapler.interceptor
Annotation Interface RequirePOST
@Retention(RUNTIME)
@Target({METHOD,FIELD})
@InterceptorAnnotation(Processor.class)
public @interface RequirePOST
Requires the request to be a POST.
When the current request has a non-matching HTTP method (such as 'GET'), this annotation will send a failure response instead of searching for other matching web methods.
- Since:
- 1.180
- Author:
- Kohsuke Kawaguchi
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Allows customizing the error page shown when an annotated method is called with the wrong HTTP method.static class