Skip navigation links
A C E G H I J M N P S T V 

A

appendMessage(JSONRPC2Error, String) - Static method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
Deprecated.
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
Appends a non-standard attribute to this JSON-RPC 2.0 message.

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.examples - package com.thetransactioncompany.jsonrpc2.examples
Examples.
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(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 is null, 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.
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 is null, 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.
ensureParameter(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
ensureParameter(String, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
ensureParameter(String, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
ensureParameter(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Deprecated.
ensureParameter(int, Class<T>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Deprecated.
ensureParameter(int, Class<T>, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Deprecated.
ensureParameters(String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
ensureParameters(String[], String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
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().
Example1 - Class in com.thetransactioncompany.jsonrpc2.examples
This example illustrates the typical life-cycle of a JSON-RPC 2.0 request.
Example1() - Constructor for class com.thetransactioncompany.jsonrpc2.examples.Example1
 
Example2 - Class in com.thetransactioncompany.jsonrpc2.examples
This example shows how to discern between received JSON-RPC 2.0 requests and notifications on the server side.
Example2() - Constructor for class com.thetransactioncompany.jsonrpc2.examples.Example2
 
Example3 - Class in com.thetransactioncompany.jsonrpc2.examples
This example demonstrates the use of the utility classes PositionalParamsRetriever and NamedParamsRetriever to extract parameters from incoming requests and notifications with proper type and optional value checking.
Example3() - Constructor for class com.thetransactioncompany.jsonrpc2.examples.Example3
 

G

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).
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).
getBoolean(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified boolean (maps from JSON true/false) parameter.
getBoolean(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
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(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified numeric parameter as a double.
getDouble(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified numeric parameter as a double.
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.
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.
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.
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 insenstive match.
getEnumStringMatch(String, String[], boolean) - Static method in class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
Matches a string against an array of acceptable values.
getEnumStringMatch(String, Class<T>, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.util.ParamsRetriever
Matches a string against an enumeration of acceptable values.
getError() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
Gets the error object indicating the cause of the request failure.
getFloat(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified numeric parameter as a float.
getFloat(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
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(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified numeric parameter as an int.
getInt(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified numeric parameter as an int.
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.
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.
getLong(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified numeric parameter as a long.
getLong(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified numeric parameter as a long.
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.
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.
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
Retrieves a non-standard JSON-RPC 2.0 message attribute.
getNonStdAttributes() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Message
Retrieves the non-standard JSON-RPC 2.0 message attributes.
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).
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(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(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).
getOptBoolean(String, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified optional boolean (maps from JSON true/false) parameter.
getOptBoolean(int, boolean) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional boolean (maps from JSON true/false) parameter.
getOptDouble(String, double) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified optional numeric parameter as a double.
getOptDouble(int, double) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional numeric parameter as a double.
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 insenstive match.
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.
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.
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.
getOptFloat(String, float) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified optional numeric parameter as a float.
getOptFloat(int, float) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional numeric parameter as a float.
getOptInt(String, int) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified optional numeric parameter as an int.
getOptInt(int, int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional numeric parameter as an int.
getOptList(String, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
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(int, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional list (maps from JSON array) parameter.
getOptList(int, boolean, List<Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional list (maps from JSON array) parameter.
getOptLong(String, long) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Retrieves the specified optional numeric parameter as a long.
getOptLong(int, long) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional numeric parameter as a long.
getOptMap(String, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
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(int, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional map (maps from JSON object) parameter.
getOptMap(int, boolean, Map<String, Object>) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional map (maps from JSON object) parameter.
getOptString(String, String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
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(int, String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional string parameter.
getOptString(int, boolean, String) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional string 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.
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(int, String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Retrieves the specified optional string array (maps from JSON array of strings) 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.
getParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
Deprecated.
getParams() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Deprecated.
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
Gets the parameters type (positional, named or none).
getParamsType() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Gets the parameters type (positional, named or none).
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(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.
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.
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.
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.
getUnparsableString() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2ParseException
Gets original string that caused the parse exception (if specified).

H

hasParam(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Returns true if a parameter by the specified name exists, else false.
hasParam(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Returns true a parameter at the specified position exists, else false.
hasParameter(String) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
hasParameter(int) - Method in class com.thetransactioncompany.jsonrpc2.util.PositionalParamsRetriever
Deprecated.
hasParameters(String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
hasParameters(String[], String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Deprecated.
hasParams(String[]) - Method in class com.thetransactioncompany.jsonrpc2.util.NamedParamsRetriever
Returns true if the parameters by the specified names exist, else false.
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

ignoresVersion() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Returns true if the "jsonrpc":"2.0" version attribute in parsed JSON-RPC 2.0 messages is ignored, else false.
ignoreVersion(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Specifies whether to ignore the "jsonrpc":"2.0" version attribute during parsing of JSON-RPC 2.0 messages.
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 that occurred during the processing of a request.
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, 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.
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.
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
Creates a new JSON-RPC 2.0 message parser.
JSONRPC2Parser(boolean, boolean) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Creates a new JSON-RPC 2.0 message parser.
JSONRPC2Parser(boolean, boolean, boolean) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Creates a new JSON-RPC 2.0 message parser.
JSONRPC2Request - Class in com.thetransactioncompany.jsonrpc2
Represents a JSON-RPC 2.0 request.
JSONRPC2Request(String, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Constructs a new JSON-RPC 2.0 request with no parameters.
JSONRPC2Request(String, List<Object>, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Constructs 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
Constructs 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(Object, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
Creates a new JSON-RPC 2.0 response to a successful 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(JSONRPC2Error, Object) - Constructor for class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
Creates a new JSON-RPC 2.0 response to a failed request.

M

main(String[]) - Static method in class com.thetransactioncompany.jsonrpc2.examples.Example1
 
main(String[]) - Static method in class com.thetransactioncompany.jsonrpc2.examples.Example2
 
main(String[]) - Static method in class com.thetransactioncompany.jsonrpc2.examples.Example3
 
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.

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, boolean, boolean) - 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, 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.JSONRPC2Notification
Parses a JSON-RPC 2.0 notification string.
parse(String, boolean, boolean, boolean) - 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, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Parses a JSON-RPC 2.0 request string.
parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Parses a JSON-RPC 2.0 request string.
parse(String, boolean, boolean, boolean) - 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.JSONRPC2Response
Parses a JSON-RPC 2.0 response string.
parse(String, boolean, boolean) - Static method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Response
Parses a JSON-RPC 2.0 response string.
parse(String, boolean, boolean, boolean) - 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).
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.
parseMessage(String) - Static method in class com.thetransactioncompany.jsonrpc2.examples.Example2
Parses a JSON-RPC 2.0 message and determines its type
parseNonStdAttributes(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Specifies whether to parse non-standard attributes found in JSON-RPC 2.0 messages.
parsesNonStdAttributes() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Returns true if non-standard attributes in JSON-RPC 2.0 messages are parsed.
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.
preserveOrder(boolean) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Controls the preservation of JSON object member order in parsed JSON-RPC 2.0 messages.
preservesOrder() - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Parser
Returns true if the order of JSON object members in parsed JSON-RPC 2.0 messages is preserved, else false.
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(JSONRPC2Error, Object) - Static method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
Deprecated.
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.
setParams(Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Notification
Deprecated.
setParams(Object) - Method in class com.thetransactioncompany.jsonrpc2.JSONRPC2Request
Deprecated.
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

toJSON() - Method in exception com.thetransactioncompany.jsonrpc2.JSONRPC2Error
Deprecated.
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.
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.
A C E G H I J M N P S T V 
Skip navigation links

Copyright © 2021 The Transaction Company. All Rights Reserved.