/** * Get HttpMethod enum constant matching given <code>methodName</code> name * @param methodName Method name * @return Matching HttpMethod, or <code>null</code> if none match */ public static HttpMethod from(String methodName) { if (methodName != null) { for (HttpMethod value : values()) { if (methodName.equalsIgnoreCase(value.getMethodName())) { return value; } } } return null; }