Annotation Interface RequestBody


@Retention(RUNTIME) @Target(TYPE) public @interface RequestBody
The body this operation takes, for a handler that reads it by hand.

A handler extending BodyHandlerJsonHandler and its like — needs none of this: its body type is its type argument and its media type comes from @Consumes. Use this when the body is read straight off the request, or to describe it as something other than what the handler parses.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
     
    dev.relism.flash.http.ContentType
     
     
    boolean
     
  • Element Details

    • value

      Class<?> value
    • contentType

      dev.relism.flash.http.ContentType contentType
      Default:
      JSON
    • array

      boolean array
      Default:
      false
    • required

      boolean required
      Default:
      true
    • description

      String description
      Default:
      ""