code: public int isCompliantWithRequestContentType(Request request) {
          if (acceptedMediaTypes == null || acceptedMediaTypes.isEmpty() || request == null) {
              return 2;
          } else {
              String content = request.contentMimeType();
              if (content == null) {
                  return 2;
              } else {
                  // For all consume, check whether we accept it
                  MediaType contentMimeType = MediaType.parse(request.contentMimeType());
                  for (MediaType type : acceptedMediaTypes) {
                      if (contentMimeType.is(type)) {
                          if (type.hasWildcard()) {
                              return 1;
                          } else {
                              return 2;
                          }
                      }
                  }
                  return 0;
              }
          }
      }
docs: Checks whether or not the current route can accept the given request. It checks the request content type
  against the list of accepted mime types. It does not return a boolean but an integer indicating the level of
  acceptation: 0 - not accepted, 1 - accepted using a wildcard, 2 - full accept. This distinction comes from the
  possibility to have wildcard in the accepted mime types. For instance, if the request contains `text/plain`,
  and the route accepts `text/*`, it returns 1. If the route would have accepted `text/plain`, 2 would have been
  returned.
  
  @param request the incoming request
  @return the acceptation level (0, 1 or 2).