|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Class Summary | |
|---|---|
| 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). |
Utility classes for typed retrieval of JSON-RPC 2.0 request parameters on the server side.
The following parameter type conversion choices are available:
booleanint, long, float or
doublejava.lang.Stringenum constant
or java.lang.Stringboolean[], int[], long[],
float[], double[] or string[] array, or
to mixed type java.util.Listjava.util.MapIf 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.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||