@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface JsonRpcParam
Important note - by default RPC parameters are mandatory, but default value of options() flag in this annotation is true, which means that using this annotation changes default status of the parameter.
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
defaultNull
Sets default value of the parameter to NULL.
|
String |
defaultValue
Sets default value (note that setting `defaultValue` makes `optional` meaningless).
|
String |
name
RPC parameter name (if not specified, name from Java method signature will be used).
|
boolean |
optional
Marks parameter as optional.
|
public abstract String name
public abstract String defaultValue
Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.