Class HttpVerbInterceptor

java.lang.Object
org.kohsuke.stapler.interceptor.Interceptor
org.kohsuke.stapler.verb.HttpVerbInterceptor

public class HttpVerbInterceptor extends Interceptor
Restricts the routing to matching HTTP verbs.

Usage

This package defines a number of HTTP verb (method) annotations that can be used to restrict routing. For example,

 @WebMethod(name="") @DELETE
 public void delete() {
     // this method will be invoked only when the request is DELETE
     ...
 }

 @WebMethod(name="") @POST
 public void create(@JsonBody Order order) {
     // this method will be invoked only when the request is POST
     ...
 }
 

This class is the actual logic that implements this semantics on top of Interceptor.

Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • HttpVerbInterceptor

      public HttpVerbInterceptor()
  • Method Details