A C E G H I J M N O P S T V
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ALLOW_NULL_ERROR_IN_RESPONSE - com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
Allow a
null
"error" member in JSON-RPC 2.0 responses. - appendMessage(String) - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Appends the specified string to the message of this JSON-RPC 2.0 error.
- appendNonStdAttribute(String, Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Deprecated.
- appendNonStdMember(String, Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Appends a non-standard member to this JSON-RPC 2.0 message.
- ARRAY - com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
-
Positional parameters, packed as a JSON array.
C
- com.thetransactioncompany.jsonrpc2 - package com.thetransactioncompany.jsonrpc2
-
Classes to represent, parse and serialise JSON-RPC 2.0 requests, notifications and responses.
- com.thetransactioncompany.jsonrpc2.util - package com.thetransactioncompany.jsonrpc2.util
-
Utility classes for typed retrieval of JSON-RPC 2.0 request parameters on the server side.
E
- ensureParam(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter at the specified position. - ensureParam(int, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter at the specified position, its value isnull
, or its type doesn't map to the specified. - ensureParam(int, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter at the specified position or its type doesn't map to the specified. - ensureParam(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter by the specified name. - ensureParam(String, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter by the specified name, its value isnull
, or its type doesn't map to the specified. - ensureParam(String, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
exception if there is no parameter by the specified name or its type doesn't map to the specified. - ensureParams(String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
if the specified names aren't present in the parameters, or names outside the specified are contained. - ensureParams(String[], String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Throws a
JSONRPC2Error.INVALID_PARAMS
if the specified mandatory names aren't contained in the parameters, or names outside the specified mandatory and optional are present. - equals(Object) - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Overrides
Object.equals()
.
G
- get(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified parameter which can be of any type.
- get(int, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- get(int, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- get(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified parameter which can be of any type.
- get(String, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- get(String, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- getBoolean(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified boolean (maps from JSON true/false) parameter.
- getBoolean(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified boolean (maps from JSON true/false) parameter.
- getCauseType() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Gets the parse exception cause type.
- getCode() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Gets the JSON-RPC 2.0 error code.
- getData() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Gets the JSON-RPC 2.0 error data.
- getDouble(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified numeric parameter as a
double
. - getDouble(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified numeric parameter as a
double
. - getEnum(int, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified enumerated parameter (from a JSON string that has a predefined set of possible values).
- getEnum(int, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified enumerated parameter (from a JSON string that has a predefined set of possible values), allowing for a case -insensitive match.
- getEnum(String, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified enumerated parameter (from a JSON string that has a predefined set of possible values).
- getEnum(String, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified enumerated parameter (from a JSON string that has a predefined set of possible values), allowing for a case insensitive match.
- getEnumString(int, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified enumerated string parameter.
- getEnumString(int, String[], boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified enumerated string parameter, allowing for a case-insensitive match.
- getEnumString(String, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified enumerated string parameter.
- getEnumString(String, String[], boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified enumerated string parameter, allowing for a case insenstive match.
- getEnumStringMatch(String, Class<T>, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
-
Matches a string against an enumeration of acceptable values.
- getEnumStringMatch(String, String[], boolean) - Static method in class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
-
Matches a string against an array of acceptable values.
- getError() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Gets the error object indicating the cause of the request failure.
- getFloat(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified numeric parameter as a
float
. - getFloat(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified numeric parameter as a
float
. - getID() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Gets the request identifier.
- getID() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Gets the request identifier that is echoed back to the caller.
- getInt(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified numeric parameter as an
int
. - getInt(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified numeric parameter as an
int
. - getList(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified list (maps from JSON array) parameter.
- getList(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified list (maps from JSON array) parameter.
- getList(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified list (maps from JSON array) parameter.
- getList(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified list (maps from JSON array) parameter.
- getLong(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified numeric parameter as a
long
. - getLong(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified numeric parameter as a
long
. - getMap(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified map (maps from JSON object) parameter.
- getMap(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified map (maps from JSON object) parameter.
- getMap(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified map (maps from JSON object) parameter.
- getMap(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified map (maps from JSON object) parameter.
- getMethod() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Gets the name of the requested method.
- getMethod() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Gets the name of the requested method.
- getNamedParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Gets the named parameters.
- getNamedParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Gets the named parameters.
- getNames() - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Returns the names of all available parameters.
- getNonStdAttribute(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Deprecated.
- getNonStdAttributes() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Deprecated.
- getNonStdMember(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Gets a non-standard JSON-RPC 2.0 message member.
- getNonStdMembers() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Gets the non-standard JSON-RPC 2.0 message members.
- getOpt(int, Class<T>, boolean, T) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- getOpt(int, Class<T>, T) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- getOpt(String, Class<T>, boolean, T) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- getOpt(String, Class<T>, T) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional parameter which must map to the provided class (use the appropriate wrapper class for primitive types).
- getOptBoolean(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional boolean (maps from JSON true/false) parameter.
- getOptBoolean(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional boolean (maps from JSON true/false) parameter.
- getOptDouble(int, double) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional numeric parameter as a
double
. - getOptDouble(String, double) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional numeric parameter as a
double
. - getOptEnum(int, Class<T>, String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional enumerated parameter (from a JSON string that has a predefined set of possible values).
- getOptEnum(int, Class<T>, String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional enumerated parameter (from a JSON string that has a predefined set of possible values), allowing for a case insenstive match.
- getOptEnum(String, Class<T>, T) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional enumerated parameter (from a JSON string that has a predefined set of possible values).
- getOptEnum(String, Class<T>, T, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional enumerated parameter (from a JSON string that has a predefined set of possible values), allowing for a case-insensitive match.
- getOptEnumString(int, String[], String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional enumerated string parameter.
- getOptEnumString(int, String[], String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional enumerated string parameter, allowing for a case insenstive match.
- getOptEnumString(String, String[], String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional enumerated string parameter.
- getOptEnumString(String, String[], String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional enumerated string parameter, allowing for a case insenstive match.
- getOptFloat(int, float) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional numeric parameter as a
float
. - getOptFloat(String, float) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional numeric parameter as a
float
. - getOptInt(int, int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional numeric parameter as an
int
. - getOptInt(String, int) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional numeric parameter as an
int
. - getOptions() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Returns the parse options.
- getOptList(int, boolean, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional list (maps from JSON array) parameter.
- getOptList(int, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional list (maps from JSON array) parameter.
- getOptList(String, boolean, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional list (maps from JSON array) parameter.
- getOptList(String, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional list (maps from JSON array) parameter.
- getOptLong(int, long) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional numeric parameter as a
long
. - getOptLong(String, long) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional numeric parameter as a
long
. - getOptMap(int, boolean, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional map (maps from JSON object) parameter.
- getOptMap(int, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional map (maps from JSON object) parameter.
- getOptMap(String, boolean, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional map (maps from JSON object) parameter.
- getOptMap(String, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional map (maps from JSON object) parameter.
- getOptString(int, boolean, String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional string parameter.
- getOptString(int, String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional string parameter.
- getOptString(String, boolean, String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional string parameter.
- getOptString(String, String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional string parameter.
- getOptStringArray(int, boolean, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional string array (maps from JSON array of strings) parameter.
- getOptStringArray(int, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified optional string array (maps from JSON array of strings) parameter.
- getOptStringArray(String, boolean, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional string array (maps from JSON array of strings) parameter.
- getOptStringArray(String, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified optional string array (maps from JSON array of strings) parameter.
- getParams() - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Gets the named parameters for this retriever.
- getParams() - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Gets the positional parameters for this retriever.
- getParamsType() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
- getParamsType() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
- getPositionalParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Gets the positional (JSON array) parameters.
- getPositionalParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Gets the positional (JSON array) parameters.
- getResult() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Gets the result of the request.
- getString(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified string parameter.
- getString(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified string parameter.
- getString(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified string parameter.
- getString(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified string parameter.
- getStringArray(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified string array (maps from JSON array of strings) parameter.
- getStringArray(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Retrieves the specified string array (maps from JSON array of strings) parameter.
- getStringArray(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified string array (maps from JSON array of strings) parameter.
- getStringArray(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Retrieves the specified string array (maps from JSON array of strings) parameter.
- getUnparsableString() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Gets original string that caused the parse exception (if specified).
H
- hashCode() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
- hasParam(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Returns
true
a parameter at the specified position exists, elsefalse
. - hasParam(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Returns
true
if a parameter by the specified name exists, elsefalse
. - hasParams(String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Returns
true
if the parameters by the specified names exist, elsefalse
. - hasParams(String[], String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Returns
true
if the parameters by the specified mandatory names exist,false
if any mandatory name is missing or a name outside the mandatory and optional is present.
I
- IGNORE_VERSION - com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
The
"jsonrpc":"2.0"
version member in the JSON-RPC 2.0 message must be ignored. - ignoresVersion() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- ignoreVersion(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- indicatesSuccess() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
A convinience method to check if the response indicates success or failure of the request.
- INTERNAL_ERROR - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Internal JSON-RPC 2.0 error (-32603).
- INVALID_PARAMS - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Invalid parameters error (-32602).
- INVALID_REQUEST - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Invalid JSON-RPC 2.0 request error (-32600).
J
- JSON - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Indicates a parse exception caused by invalid JSON.
- JSONRPC2Error - Exception in com.thetransactioncompany.jsonrpc2
-
Represents a JSON-RPC 2.0 error.
- JSONRPC2Error(int, String) - Constructor for exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Creates a new JSON-RPC 2.0 error with the specified code and message.
- JSONRPC2Error(int, String, Object) - Constructor for exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Creates a new JSON-RPC 2.0 error with the specified code, message and data.
- JSONRPC2Message - Class in com.thetransactioncompany.jsonrpc2
-
The base abstract class for JSON-RPC 2.0 requests, notifications and responses.
- JSONRPC2Message() - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
- JSONRPC2Notification - Class in com.thetransactioncompany.jsonrpc2
-
Represents a JSON-RPC 2.0 notification.
- JSONRPC2Notification(String) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Constructs a new JSON-RPC 2.0 notification with no parameters.
- JSONRPC2Notification(String, List<Object>) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Constructs a new JSON-RPC 2.0 notification with positional (JSON array) parameters.
- JSONRPC2Notification(String, Map<String, Object>) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Constructs a new JSON-RPC 2.0 notification with named (JSON object) parameters.
- JSONRPC2ParamsType - Enum in com.thetransactioncompany.jsonrpc2
-
Enumeration of the three parameter types in JSON-RPC 2.0 requests and notifications.
- JSONRPC2ParseException - Exception in com.thetransactioncompany.jsonrpc2
-
Thrown to indicate an exception during the parsing of a JSON-RPC 2.0 message string.
- JSONRPC2ParseException(String) - Constructor for exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Creates a new parse exception with the specified message.
- JSONRPC2ParseException(String, int, String) - Constructor for exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Creates a new parse exception with the specified message, cause type and the original string that didn't parse.
- JSONRPC2ParseException(String, String) - Constructor for exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Creates a new parse exception with the specified message and the original string that didn't parse.
- JSONRPC2Parser - Class in com.thetransactioncompany.jsonrpc2
-
Parses JSON-RPC 2.0 request, notification and response messages.
- JSONRPC2Parser() - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Creates a new JSON-RPC 2.0 message parser.
- JSONRPC2Parser(boolean) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- JSONRPC2Parser(boolean, boolean) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- JSONRPC2Parser(boolean, boolean, boolean) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- JSONRPC2Parser(JSONRPC2Parser.Option...) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Creates a new JSON-RPC 2.0 message parser with the specified options.
- JSONRPC2Parser.Option - Enum in com.thetransactioncompany.jsonrpc2
-
JSON-RPC 2.0 parse options.
- JSONRPC2Request - Class in com.thetransactioncompany.jsonrpc2
-
Represents a JSON-RPC 2.0 request.
- JSONRPC2Request(String, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Creates a new JSON-RPC 2.0 request with no parameters.
- JSONRPC2Request(String, List<Object>, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Creates a new JSON-RPC 2.0 request with positional (JSON array) parameters.
- JSONRPC2Request(String, Map<String, Object>, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Creates a new JSON-RPC 2.0 request with named (JSON object) parameters.
- JSONRPC2Response - Class in com.thetransactioncompany.jsonrpc2
-
Represents a JSON-RPC 2.0 response.
- JSONRPC2Response(JSONRPC2Error, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Creates a new JSON-RPC 2.0 response to a failed request.
- JSONRPC2Response(Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Creates a new JSON-RPC 2.0 response to a successful request which result is
null
. - JSONRPC2Response(Object, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Creates a new JSON-RPC 2.0 response to a successful request.
M
- METHOD_NOT_FOUND - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Method not found error (-32601).
N
- NamedParamsRetriever - Class in com.thetransactioncompany.jsonrpc2.util
-
Utility class for retrieving JSON-RPC 2.0 named parameters (key-value pairs packed into a JSON Object).
- NamedParamsRetriever(Map<String, Object>) - Constructor for class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
-
Creates a new named parameters retriever from the specified key-value map.
- NO_PARAMS - com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
-
No parameters.
O
- OBJECT - com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
-
Named parameters, packed as a JSON object.
P
- ParamsRetriever - Class in com.thetransactioncompany.jsonrpc2.util
-
The base abstract class for the JSON-RPC 2.0 parameter retrievers.
- ParamsRetriever() - Constructor for class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
- parse(String) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Provides common parsing of JSON-RPC 2.0 requests, notifications and responses.
- parse(String) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Parses a JSON-RPC 2.0 notification string.
- parse(String) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Parses a JSON-RPC 2.0 request string.
- parse(String) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Parses a JSON-RPC 2.0 response string.
- parse(String, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Parses a JSON-RPC 2.0 notification string.
- parse(String, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Deprecated.
- parse(String, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Deprecated.
- parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Deprecated.
- parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Parses a JSON-RPC 2.0 notification string.
- parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Deprecated.
- parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Deprecated.
- parse(String, boolean, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Parses a JSON-RPC 2.0 notification string.
- parse(String, boolean, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Deprecated.
- parse(String, boolean, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Deprecated.
- parse(String, JSONRPC2Parser.Option...) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Provides common parsing of JSON-RPC 2.0 requests, notifications and responses.
- parse(String, JSONRPC2Parser.Option...) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Parses a JSON-RPC 2.0 request string.
- parse(String, JSONRPC2Parser.Option...) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Parses a JSON-RPC 2.0 response string.
- PARSE_ERROR - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
JSON parse error (-32700).
- PARSE_NON_STD_MEMBERS - com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
Non-standard JSON-RPC 2.0 message members must be parsed.
- parseJSONRPC2Message(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Provides common parsing of JSON-RPC 2.0 requests, notifications and responses.
- parseJSONRPC2Notification(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Parses a JSON-RPC 2.0 notification string.
- parseJSONRPC2Request(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Parses a JSON-RPC 2.0 request string.
- parseJSONRPC2Response(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Parses a JSON-RPC 2.0 response string.
- parseNonStdAttributes(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- parsesNonStdAttributes() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- PositionalParamsRetriever - Class in com.thetransactioncompany.jsonrpc2.util
-
Utility class for retrieving JSON-RPC 2.0 positional parameters (packed into a JSON Array).
- PositionalParamsRetriever(List<Object>) - Constructor for class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
-
Creates a new positional parameters retriever from the specified value list.
- PRESERVE_ORDER - com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
The order of the parsed JSON object members in parameters and results must be preserved.
- preserveOrder(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- preservesOrder() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
-
Deprecated.
- PROTOCOL - Static variable in exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
-
Indicates a parse exception caused by a JSON message not conforming to the JSON-RPC 2.0 protocol.
S
- setData(Object) - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Sets the specified data to a JSON-RPC 2.0 error.
- setError(JSONRPC2Error) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Indicates a failed JSON-RPC 2.0 request and sets the error details.
- setID(Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Sets the request identifier (ID).
- setID(Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Sets the request identifier echoed back to the caller.
- setMethod(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Sets the name of the requested method.
- setMethod(String) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Sets the name of the requested method.
- setNamedParams(Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Sets the named (JSON object) request parameters.
- setNamedParams(Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Sets the named (JSON object) request parameters.
- setPositionalParams(List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
-
Sets the positional (JSON array) request parameters.
- setPositionalParams(List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
-
Sets the positional (JSON array) request parameters.
- setResult(Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
-
Indicates a successful JSON-RPC 2.0 request and sets the result.
- size() - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
- size() - Method in class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
-
Returns the parameter count.
- size() - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
T
- toJSONObject() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Returns a JSON object representation of this JSON-RPC 2.0 error.
- toJSONObject() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Returns a JSON object representing this JSON-RPC 2.0 message.
- toJSONObject() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
- toJSONObject() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
- toJSONObject() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
- toJSONString() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Returns a JSON string representation of this JSON-RPC 2.0 message.
- toString() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
-
Serialises the error object to a JSON string.
- toString() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
-
Serialises this JSON-RPC 2.0 message to a JSON object string.
V
- valueOf(String) - Static method in enum com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.thetransactioncompany.jsonrpc2.JSONRPC2ParamsType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.thetransactioncompany.jsonrpc2.JSONRPC2Parser.Option
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes All Packages