I want to write
if (POST.equals(req.getMethod()))
instead of
if (\"POST\".equals(req.getMethod()))
but I
If you wonder why there aren't any enums defined for this, that's explained in this question and answer: Why HttpRequest.HttpMethod is string instead of Enum?
Bottom line, the HTTP spec does not restrict the set of methods allowed, so additional methods may be used beyond those which are explicitly mentioned in the spec.