Annotation Interface Optional


@Documented @Target(PARAMETER) @Retention(RUNTIME) public @interface Optional
Sets whether the parameter is optional (can receive a null value) or not. If set to true and no value with the given key is present, the parameter will receive a null value. If set to false and the value is missing, the request will be discarded silently and not passed to the handler.
Since:
4.0