See: Description
Class | Description |
---|---|
NamedParamsRetriever |
Utility class for retrieving JSON-RPC 2.0 named parameters (key-value pairs
packed into a JSON Object).
|
ParamsRetriever |
The base abstract class for the JSON-RPC 2.0 parameter retrievers.
|
PositionalParamsRetriever |
Utility class for retrieving JSON-RPC 2.0 positional parameters (packed into
a JSON Array).
|
The following parameter type conversion choices are available:
boolean
int
, long
, float
or
double
java.lang.String
enum
constant
or java.lang.String
boolean[]
, int[]
, long[]
,
float[]
, double[]
or string[]
array, or
to mixed type java.util.List
java.util.Map
If a parameter cannot be retrieved, either because it's missing or
is of the wrong type, a standard
JSONRPC2Error.INVALID_PARAMS
exception is thrown.
There are two concrete classes:
PositionalParamsRetriever
class is for extracting positional parameters (packed in a
JSON array).
NamedParamsRetriever
class is for extracting named parameters (packed in a JSON
object).
Package dependencies: The classes in this package depend on the
sister com.thetransactioncompany.jsonrpc2
package.
Copyright © 2017 The Transaction Company. All Rights Reserved.