code: public void setMethods(Set<String> methods) {
          this.methods = new HashSet<>();
          for (String method : methods) {
              this.methods.add(method.toUpperCase());
          }
      }
docs: The filter fails on requests that don't have one of these HTTP methods.
  
  @param methods the methods to set (defaults to POST)