code: public void setAllowedMethods(List<String> allowedMethods) {
      this.allowedMethods.clear();
      if (allowedMethods != null) {
        for (String allowedMethod : allowedMethods) {
          this.allowedMethods.add(allowedMethod.toUpperCase());
        }
      }
    }
docs: The allowed set of HTTP methods.
  
  @param allowedMethods The allowed set of methods.