code: private String validateHttpMethod(String httpMethod, int line) throws ParseException {
  		if (!httpMethod.equalsIgnoreCase("GET") &&
  				!httpMethod.equalsIgnoreCase("POST") &&
  				!httpMethod.equalsIgnoreCase("PUT") &&
  				!httpMethod.equalsIgnoreCase("DELETE")) {
  
  			throw new ParseException("Unrecognized HTTP method: " + httpMethod, line);
  		}
  
  		return httpMethod;
  	}
docs: Helper method. It validates if the HTTP method is valid (i.e. is a GET, POST, PUT or DELETE).
  
  @param httpMethod the HTTP method to validate.
  
  @return the same httpMethod that was received as an argument.
  @throws ParseException if the HTTP method is not recognized.