Class HttpMediaTypes

java.lang.Object
io.helidon.http.HttpMediaTypes

public final class HttpMediaTypes extends Object
Constants for HttpMediaType.
  • Field Details

    • JSON_UTF_8

      public static final HttpMediaType JSON_UTF_8
      application/json media type with UTF-8 charset.
    • JSON_PREDICATE

      public static final Predicate<HttpMediaType> JSON_PREDICATE
      Predicate to test if MediaType is application/json or has json suffix.
    • PLAINTEXT_UTF_8

      public static final HttpMediaType PLAINTEXT_UTF_8
      text/plain media type with UTF-8 charset.
    • JSON_EVENT_STREAM_PREDICATE

      public static final Predicate<HttpMediaType> JSON_EVENT_STREAM_PREDICATE
      Predicate to test if MediaType is text/event-stream without any parameter or with parameter "element-type". This "element-type" has to be equal to "application/json".