Annotation Interface Consumes


@Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Consumes
The media type a handler reads its request body as.

Declared once on a handler base class — a JSON one, an XML one — and inherited by every handler written against it, so nothing has to repeat it. Tooling reads it; the router does not.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description