Annotation Interface Produces


Specifies a media type which would be produced by the service method or class.

Note that StandardCharsets.UTF_8 is used to produce the response when the specified media type is MediaType.ANY_TEXT_TYPE and the charset is not specified.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    A media type string.
  • Element Details

    • value

      String value
      A media type string. For example,
      • application/json; charset=utf-8
      • application/xml
      • application/octet-stream
      • text/html