Class 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:
    GET, POST, PUT, DELETE
    • Constructor Detail

      • HttpVerbInterceptor

        public HttpVerbInterceptor()