IMHO you can Use HttpMethod.valueOf(String httpMethod) because all of you method values are equal to the Enum.name(). If you like some refactoring safety (thats how i understand your code at this point), you should use a Map instead and watch out for collisions (HEAD("HEAD"),....,HTTP_HEAD("HEAD")).