public static void checkParameters()

in saga-core/src/main/java/org/apache/servicecomb/saga/core/application/interpreter/RestRequestChecker.java [38:46]


  public static void checkParameters(String method, Map<String, Map<String, String>> params) {
    if (method == null || !validMethods.contains(method.toUpperCase())) {
      throw new IllegalArgumentException("Unsupported method " + method);
    }

    if (isDeleteOrGet(method) && hasBody(params)) {
      throw new IllegalArgumentException("GET & DELETE request cannot enclose a body");
    }
  }