Annotation Interface Produces


@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface Produces
Annotation that can be used to explicitly tell the server which content-type(s) a RequestHandler GET or POST handler should support.

If applied on the RequestHandler implementator class, it will be used for all HTTP methods that are not directly annotated themselves. A Method-level annotation may override a type-level one.

If not specified, all of the options in the Produces.ContentType enum will be supported by the request handler methods.

Since:
2.1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Content-Types RequestHandler may produce to respond to HTTP Requests.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description