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
Connectioninstance. - ConnectionBuilder(HttpClient) - Constructor for class eliasstar.jsonrpc.ConnectionBuilder
-
Creates a
ConnectionBuilderwith the specifiedHttpClient. - ConnectionBuilder(HttpClient, String) - Constructor for class eliasstar.jsonrpc.ConnectionBuilder
-
Creates a
ConnectionBuilderwith the specifiedHttpClientand 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
TypeAdapterbased 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
trueif the argument is aErrorand all properties are equal, otherwise returnsfalse. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.NullId
-
Every
NullIdis equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.NumberId
-
Two
NumberIdobjects are equal if their underlying id is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Two
StringIdobjects are equal if their underlying id is equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Notification
-
This method returns
trueif the argument is aNotificationorRequestwithout an id and all properties are equal, otherwise returnsfalse. - equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Two
ArrayParametersobjects are equal if their underlyingJsonArrayis equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Two
ObjectParametersobjects are equal if their underlyingJsonObjectis equal. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Request
-
This method returns
trueif the argument is aRequestand all properties are equal, otherwise returnsfalse. - equals(Object) - Method in class eliasstar.jsonrpc.objects.Response
-
This method returns
trueif the argument is aResponseand 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
ErrorResponseExceptionwithout additional data. - ErrorResponseException(long, String, JsonElement) - Constructor for exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Creates a
ErrorResponseExceptionwith additional data. - ErrorResponseException(Error) - Constructor for exception eliasstar.jsonrpc.exceptions.ErrorResponseException
-
Creates a
ErrorResponseExceptionfrom 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
Responsewas successful. - isUnsuccessful() - Method in class eliasstar.jsonrpc.objects.Response
-
Whether this
Responsecontains 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
Notificationwithout parameters. - Notification(String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Notification
-
Creates a
Notificationwith parameters in array format. - Notification(String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Notification
-
Creates a
Notificationwith 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
NumberconcreteBigDecimal. - 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
TypeAdapterFactoryforOptionalTypeAdapter.
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
Requestwithout parameters. - Request(Number, String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Requestwith parameters in array format. - Request(Number, String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Requestwith parameters in object format. - Request(String, String) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Requestwithout parameters. - Request(String, String, JsonArray) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Requestwith parameters in array format. - Request(String, String, JsonObject) - Constructor for class eliasstar.jsonrpc.objects.Request
-
Creates a
Requestwith 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
TypeAdapterFactoryforIdTypeAdapterandParameterTypeAdapter.
S
- sendBatchRequest(Request...) - Method in class eliasstar.jsonrpc.Connection
-
Sends an array of
Requestobjects to the server. - sendNotification(String) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notificationwith the specified method. - sendNotification(String, JsonArray) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notificationwith the specified method and parameters. - sendNotification(String, JsonObject) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Notificationwith the specified method and parameters. - sendRequest(Request) - Method in class eliasstar.jsonrpc.Connection
-
Sends a
Requestobject 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
GsonBuilderto 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
Stringis equal to the value of:"Notification@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString()wherecontentAsJsonString()returns a JSON-likeStringof 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
Numberto out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.id.StringId
-
Writes a
Stringto out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
-
Writes a
JsonArrayto out. - write(JsonWriter) - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
-
Writes a
JsonObjectto 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