A B C D E G H I J M N O P R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ArrayParameters - Class in eliasstar.jsonrpc.objects.parameter
-
Represents the params in array format.
- ArrayParameters(JsonArray) - Constructor for class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Creates an
ArrayParameters
.
B
- build() - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Creates a
Connection
.
C
- callRemoteProcedure(String) - Method in class eliasstar.jsonrpc.Connection
-
Calls a remote procedure.
- callRemoteProcedure(String, JsonArray) - Method in class eliasstar.jsonrpc.Connection
-
Calls a remote procedure.
- callRemoteProcedure(String, JsonObject) - Method in class eliasstar.jsonrpc.Connection
-
Calls a remote procedure.
- changeClient(HttpClient) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Changes the client used for a new
Connection
. - checkResponse(Request, Response) - Method in class eliasstar.jsonrpc.Connection
-
Checks the response if the ids match and no error is received.
- client - Variable in class eliasstar.jsonrpc.Connection
-
The client used by this
Connection
. - code() - Method in class eliasstar.jsonrpc.objects.Error
-
Getter for error code field.
- connect(String) - Static method in class eliasstar.jsonrpc.JsonRpc
-
Connects to a RPC service.
- connect(String, Duration) - Static method in class eliasstar.jsonrpc.JsonRpc
-
Connects to a RPC service.
- Connection - Class in eliasstar.jsonrpc
-
This class is the primary way of interacting with a JSON-RPC service.
- Connection(String, HttpClient, HttpRequest.Builder, Gson) - Constructor for class eliasstar.jsonrpc.Connection
-
Used by
ConnectionBuilder
. - ConnectionBuilder - Class in eliasstar.jsonrpc
-
Use this Builder to construct a customized
Connection
instance. - ConnectionBuilder(HttpClient) - Constructor for class eliasstar.jsonrpc.ConnectionBuilder
-
Creates a
ConnectionBuilder
with the specifiedHttpClient
. - ConnectionBuilder(HttpClient, String) - Constructor for class eliasstar.jsonrpc.ConnectionBuilder
-
Creates a
ConnectionBuilder
with the specifiedHttpClient
and url. - ConnectionException - Exception in eliasstar.jsonrpc.exceptions
-
Indicates a failure while sending a
Request
. - ConnectionException(String) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
-
Creates a
ConnectionException
. - ConnectionException(String, Throwable) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
-
Creates a
ConnectionException
. - ConnectionException(Throwable) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
-
Creates a
ConnectionException
. - contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Error
- contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Request
- contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Response
- create(Gson, TypeToken<T>) - Method in class eliasstar.gson.OptionalTypeAdapterFactory
- create(Gson, TypeToken<T>) - Method in class eliasstar.jsonrpc.gson.RpcTypeAdapterFactory
-
Returns a
TypeAdapter
based on the following rules:
D
E
- eliasstar.gson - package eliasstar.gson
- eliasstar.jsonrpc - package eliasstar.jsonrpc
- eliasstar.jsonrpc.exceptions - package eliasstar.jsonrpc.exceptions
- eliasstar.jsonrpc.gson - package eliasstar.jsonrpc.gson
- eliasstar.jsonrpc.objects - package eliasstar.jsonrpc.objects
- eliasstar.jsonrpc.objects.id - package eliasstar.jsonrpc.objects.id
- eliasstar.jsonrpc.objects.parameter - package eliasstar.jsonrpc.objects.parameter
- equals(Object) - Method in class eliasstar.jsonrpc.objects.Error
-
This method returns
true
if the argument is aError
and all properties are equal, otherwise returnsfalse
. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.NullId
-
Every
NullId
is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Two
NumberId
objects are equal if their underlying id is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Two
StringId
objects are equal if their underlying id is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Notification
-
This method returns
true
if the argument is aNotification
orRequest
without an id and all properties are equal, otherwise returnsfalse
. - equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Two
ArrayParameters
objects are equal if their underlyingJsonArray
is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Two
ObjectParameters
objects are equal if their underlyingJsonObject
is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Request
-
This method returns
true
if the argument is aRequest
and all properties are equal, otherwise returnsfalse
. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Response
-
This method returns
true
if the argument is aResponse
and all properties are equal, otherwise returnsfalse
. - error() - Method in class eliasstar.jsonrpc.objects.Response
-
Getter for error field.
- Error - Class in eliasstar.jsonrpc.objects
-
Represents a JSON-RPC error contained in a
Response
. - ErrorResponseException - Exception in eliasstar.jsonrpc.exceptions
- ErrorResponseException(long, String) - Constructor for exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Creates a
ErrorResponseException
without additional data. - ErrorResponseException(long, String, JsonElement) - Constructor for exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Creates a
ErrorResponseException
with additional data. - ErrorResponseException(Error) - Constructor for exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Creates a
ErrorResponseException
from anError
.
G
- get() - Method in class eliasstar.jsonrpc.objects.id.NullId
-
Getter for
null
. - get() - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Getter for the actual id.
- get() - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Getter for the actual id.
- get() - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Getter for the actual parameters.
- get() - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Getter for the actual parameters.
- getErrorCode() - Method in exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Getter for error code.
- getErrorData() - Method in exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Getter for error data.
- getRequestId() - Method in exception eliasstar.jsonrpc.exceptions.IdMismatchException
-
Getter for request id.
- getResponseId() - Method in exception eliasstar.jsonrpc.exceptions.IdMismatchException
-
Getter for response id.
- gson - Variable in class eliasstar.jsonrpc.Connection
-
The gson instance used for serialization and deserialization.
H
- hashCode() - Method in class eliasstar.jsonrpc.objects.Error
-
This method is implemented using
Objects.hash()
. - hashCode() - Method in class eliasstar.jsonrpc.objects.id.NullId
-
The hash code is always zero because there is only one instance of
NullId
. - hashCode() - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Returns the hash code for this
NumberId
. - hashCode() - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Returns the hash code for this
StringId
. - hashCode() - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Returns the hash code for this
ArrayParameters
. - hashCode() - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Returns the hash code for this
ObjectParameters
. - hashCode() - Method in class eliasstar.jsonrpc.objects.Request
-
This method is implemented using
Objects.hash()
. - hashCode() - Method in class eliasstar.jsonrpc.objects.Response
-
This method is implemented using
Objects.hash()
.
I
- id - Variable in class eliasstar.jsonrpc.Connection
-
The optional id of this
Connection
. - id() - Method in class eliasstar.jsonrpc.objects.Request
-
Getter for id field.
- id() - Method in class eliasstar.jsonrpc.objects.Response
-
Getter for id field.
- Id<T> - Interface in eliasstar.jsonrpc.objects.id
-
Represents the id in a JSON-RPC request.
- IdMismatchException - Exception in eliasstar.jsonrpc.exceptions
- IdMismatchException(Id<?>, Id<?>) - Constructor for exception eliasstar.jsonrpc.exceptions.IdMismatchException
-
Creates a
IdMismatchException
. - instance() - Static method in class eliasstar.gson.OptionalTypeAdapterFactory
-
Getter for singleton instance.
- instance() - Static method in class eliasstar.jsonrpc.gson.RpcTypeAdapterFactory
-
Getter for singleton instance.
- instance() - Static method in class eliasstar.jsonrpc.objects.id.NullId
-
Getter for singleton instance.
- isSuccessful() - Method in class eliasstar.jsonrpc.objects.Response
-
Whether the request that generated this
Response
was successful. - isUnsuccessful() - Method in class eliasstar.jsonrpc.objects.Response
-
Whether this
Response
contains an error.
J
- jsonrpc() - Method in class eliasstar.jsonrpc.objects.Request
-
Getter for jsonrpc field.
- jsonrpc() - Method in class eliasstar.jsonrpc.objects.Response
-
Getter for jsonrpc field.
- JsonRpc - Class in eliasstar.jsonrpc
-
This facade can be used to get started quickly and easily with sending RPC requests.
- JsonRpc() - Constructor for class eliasstar.jsonrpc.JsonRpc
M
- message() - Method in class eliasstar.jsonrpc.objects.Error
-
Getter for error message field.
- method() - Method in class eliasstar.jsonrpc.objects.Request
-
Getter for method field.
N
- Notification - Class in eliasstar.jsonrpc.objects
-
Represents a JSON-RPC request without an id, otherwise known as a notification.
- Notification(String) - Constructor for class eliasstar.jsonrpc.objects.Notification
-
Creates a
Notification
without parameters. - Notification(String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Notification
-
Creates a
Notification
with parameters in array format. - Notification(String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Notification
-
Creates a
Notification
with parameters in object format. - NullId - Class in eliasstar.jsonrpc.objects.id
-
Represents an id with a value of
null
. - NumberId - Class in eliasstar.jsonrpc.objects.id
-
Represents an id with a type of
Number
concreteBigDecimal
. - NumberId(BigDecimal) - Constructor for class eliasstar.jsonrpc.objects.id.NumberId
-
Creates a
NumberId
.
O
- ObjectParameters - Class in eliasstar.jsonrpc.objects.parameter
-
Represents the params in object format.
- ObjectParameters(JsonObject) - Constructor for class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Creates an
ObjectParameters
. - OptionalTypeAdapterFactory - Class in eliasstar.gson
-
Gson
TypeAdapterFactory
forOptionalTypeAdapter
.
P
- Parameters<T> - Interface in eliasstar.jsonrpc.objects.parameter
-
Represents the params in a JSON-RPC request.
- params() - Method in class eliasstar.jsonrpc.objects.Request
-
Getter for params field.
R
- reqBuilder - Variable in class eliasstar.jsonrpc.Connection
-
The request builder used for new requests.
- Request - Class in eliasstar.jsonrpc.objects
-
Represents a JSON-RPC request.
- Request(Id<?>, String, Parameters<?>) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
. - Request(Number, String) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
without parameters. - Request(Number, String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
with parameters in array format. - Request(Number, String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
with parameters in object format. - Request(String, String) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
without parameters. - Request(String, String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
with parameters in array format. - Request(String, String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Request
with parameters in object format. - requestId - Variable in class eliasstar.jsonrpc.Connection
-
The next request id.
- Response - Class in eliasstar.jsonrpc.objects
-
Represents a JSON-RPC response.
- result() - Method in class eliasstar.jsonrpc.objects.Response
-
Getter for result field.
- RpcException - Exception in eliasstar.jsonrpc.exceptions
-
Root exception with is extended by all jsonrpc-specific exceptions.
- RpcTypeAdapterFactory - Class in eliasstar.jsonrpc.gson
-
Gson
TypeAdapterFactory
forIdTypeAdapter
andParameterTypeAdapter
.
S
- sendBatchRequest(Request...) - Method in class eliasstar.jsonrpc.Connection
-
Sends an array of
Request
objects to the server. - sendNotification(String) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notification
with the specified method. - sendNotification(String, JsonArray) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notification
with the specified method and parameters. - sendNotification(String, JsonObject) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notification
with the specified method and parameters. - sendRequest(Request) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Request
object to the server. - setConnectionTimeout(Duration) - Static method in class eliasstar.jsonrpc.JsonRpc
-
Sets the timeout for a new connection attempt.
- setGson(Gson) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the
GsonBuilder
to be used by a createdConnection
. - setGson(GsonBuilder) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the gson builder used for creating the gson instance used by a new
Connection
. - setHttpVersion(HttpClient.Version) - Static method in class eliasstar.jsonrpc.JsonRpc
-
Sets the HTTP version used by the client.
- setRedirectPolicy(HttpClient.Redirect) - Static method in class eliasstar.jsonrpc.JsonRpc
-
Sets the redirect policy used for requests.
- setRequestBuilder(HttpRequest.Builder) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the request builder used by a new
Connection
. - StringId - Class in eliasstar.jsonrpc.objects.id
-
Represents an id with a type of
String
. - StringId(String) - Constructor for class eliasstar.jsonrpc.objects.id.StringId
-
Creates an
StringId
.
T
- toString() - Method in class eliasstar.jsonrpc.objects.Error
- toString() - Method in class eliasstar.jsonrpc.objects.id.NullId
-
Gets the literal string
"null"
. - toString() - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Returns the string representation for this
NumberId
. - toString() - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Returns the string representation for this
StringId
. - toString() - Method in class eliasstar.jsonrpc.objects.Notification
-
The returned
String
is equal to the value of:"Notification@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString()
wherecontentAsJsonString()
returns a JSON-likeString
of thisNotification
. - toString() - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Returns the string representation for this
ArrayParameters
. - toString() - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Returns the string representation for this
ObjectParameters
. - toString() - Method in class eliasstar.jsonrpc.objects.Request
- toString() - Method in class eliasstar.jsonrpc.objects.Response
W
- withId(String) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the id used by the created
Connection
. - withUrl(String) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the url of a new
Connection
. - withUrl(URI) - Method in class eliasstar.jsonrpc.ConnectionBuilder
-
Sets the url of a new
Connection
. - write(JsonWriter) - Method in interface eliasstar.jsonrpc.objects.id.Id
-
Writes one JSON value (an array, object, string, number, boolean or null).
- write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.id.NullId
-
Writes a null literal to out.
- write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Writes a
Number
to out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Writes a
String
to out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Writes a
JsonArray
to out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Writes a
JsonObject
to out. - write(JsonWriter) - Method in interface eliasstar.jsonrpc.objects.parameter.Parameters
-
Writes one JSON value (an array, object, string, number, boolean or null).
All Classes All Packages