Annotation Interface Http.Consumes

Enclosing class:
Http

@Retention(CLASS) @Target({TYPE,METHOD}) @Documented public static @interface Http.Consumes
What media type(s) an endpoint or method can consume.

When declared on an endpoint type, the media types are used as defaults for endpoint methods that accept a request entity. An annotation declared on a method replaces the endpoint type defaults for that method; an empty method annotation clears them.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Media types acceptable by this endpoint or method.
  • Element Details

    • value

      String[] value
      Media types acceptable by this endpoint or method.
      Returns:
      consumed media types, such as application/json