public static int parse(String methods) {
        int httpMethods = 0;
        String[] items = methods.split("\\|");
        for (String item : items) {
            item = item.trim();
            httpMethods = httpMethods | HttpMethods.getMethod(item);
        }

        return httpMethods;
    }