@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface JsonRpcParam
IllegalArgumentException will be generated in runtime and
an error message will be returned to a client.| Modifier and Type | Required Element and Description |
|---|---|
String |
value
RPC method parameter name.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
required
Whether parameter is required
If
false, it means that a client isn't forced to pass this parameter to the method. |
public abstract String value
public abstract boolean required
false, it means that a client isn't forced to pass this parameter to the method.
If the client doesn't provide the parameter, null value is used for complex types
and an appropriate default value for primitives.Copyright © 2018. All rights reserved.