Package org.apache.tapestry5.annotations

## Annotation Type RequestBody

-     @Target(PARAMETER)
      @Retention(RUNTIME)
      @Documented
      @UseWith(PAGE)
      public @interface RequestBody

  Annotation that may be placed on parameters of event handler methods, usually in page classes. Annotated parameters will be extracted fro the request body and converted to the parameter type using HttpRequestBodyConverter, which uses TypeCoercer as a fallback. An event handler method having more than one RequestBody parameter is considered an error.
  Since:
    5.8.0
  See Also:
    `OnEventWorker`

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `boolean` | `allowEmpty` | If false (the default), then an exception is thrown when the request body is empty (i.e.

- - ### Element Detail

    - #### allowEmpty

          boolean allowEmpty

      If false (the default), then an exception is thrown when the request body is empty (i.e. zero bytes). If true, then empty bodies are allowed and the parameter will receive a null value.
      Default:
        false