@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface MessageBody
boolean
required
public abstract boolean required
Default is true, leading to an exception thrown in case there is no body content. Switch this to false if you prefer null to be passed when the body content is null.
true
false
null