web/src/main/java/org/springframework/security/web/util/matcher/RegexRequestMatcher.java
private static HttpMethod valueOf(String method) {
		try {
			return HttpMethod.valueOf(method);
		}
		catch (IllegalArgumentException e) {
		}

		return null;
	}
private static HttpMethod valueOf(String method) {
		try {
			return HttpMethod.valueOf(method);
		}
		catch (IllegalArgumentException e) {
		}

		return null;
	}
private static HttpMethod valueOf ( String method ) { try { return HttpMethod . valueOf ( method ) ; } catch ( IllegalArgumentException e ) { } return null ; }
Provides a save way of obtaining the HttpMethod from a String. If the method is
invalid, returns null.

@param method the HTTP method to use.

@return the HttpMethod or null if method is invalid.
Provides a save way of obtaining the HttpMethod from a String . If the method is invalid returns null .