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

@param methods the methods to set (defaults to POST)