Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({PARAMETER})
public @interface RequestBody
Binds the decoded request body to this parameter.
The body is decoded to the parameter’s declared type using the generated codec for it, so a controller receives its own type rather than a Map.
Methods
public abstract boolean required() default true | Whether a request with no body is rejected. |
Method details
required
public abstract boolean required() default trueWhether a request with no body is rejected.