private static AllowedOperation mapHttpMethod()

in library/src/main/java/org/apache/fineract/cn/anubis/service/PermittableService.java [93:108]


  private static AllowedOperation mapHttpMethod(final String httpMethod) {
    switch (httpMethod) {
      case "GET":
        return AllowedOperation.READ;
      case "HEAD":
        return AllowedOperation.READ;
      case "POST":
        return AllowedOperation.CHANGE;
      case "PUT":
        return AllowedOperation.CHANGE;
      case "DELETE":
        return AllowedOperation.DELETE;
      default:
        throw new IllegalArgumentException("Unsupported HTTP Method " + httpMethod);
    }
  }