A B C D E G H I J M N O P R S T W 
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
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 specified HttpClient.
ConnectionBuilder(HttpClient, String) - Constructor for class eliasstar.jsonrpc.ConnectionBuilder
Creates a ConnectionBuilder with the specified HttpClient and url.
ConnectionException - Exception in eliasstar.jsonrpc.exceptions
Indicates a failure while sending a Request.
ConnectionException(String) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
ConnectionException(String, Throwable) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
ConnectionException(Throwable) - Constructor for exception eliasstar.jsonrpc.exceptions.ConnectionException
contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Error
The returned String represents the contents of this Error.
contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Request
The returned String represents the contents of this Request.
contentAsJsonString() - Method in class eliasstar.jsonrpc.objects.Response
The returned String represents the contents of this Response.
create(Gson, TypeToken<T>) - Method in class eliasstar.gson.OptionalTypeAdapterFactory
Creates a OptionalTypeAdapter, or null if type is not representing a Optional.
create(Gson, TypeToken<T>) - Method in class eliasstar.jsonrpc.gson.RpcTypeAdapterFactory
Returns a TypeAdapter based on the following rules:

D

data() - Method in class eliasstar.jsonrpc.objects.Error
Getter for error data field.

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 a Error and all properties are equal, otherwise returns false.
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 a Notification or Request without an id and all properties are equal, otherwise returns false.
equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ArrayParameters
Two ArrayParameters objects are equal if their underlying JsonArray is equal.
equals(Object) - Method in class eliasstar.jsonrpc.objects.parameter.ObjectParameters
Two ObjectParameters objects are equal if their underlying JsonObject is equal.
equals(Object) - Method in class eliasstar.jsonrpc.objects.Request
This method returns true if the argument is a Request and all properties are equal, otherwise returns false.
equals(Object) - Method in class eliasstar.jsonrpc.objects.Response
This method returns true if the argument is a Response and all properties are equal, otherwise returns false.
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
Indicates that a Response with an Error was received.
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 an Error.

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
Indicates that the Id of the Response received does not match the one sent in the Request.
IdMismatchException(Id<?>, Id<?>) - Constructor for exception eliasstar.jsonrpc.exceptions.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 concrete BigDecimal.
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 for OptionalTypeAdapter.

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 for IdTypeAdapter and ParameterTypeAdapter.

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 created Connection.
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
The returned String is equal to the value of: "Error@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString() where contentAsJsonString() returns a JSON-like String of this 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() where contentAsJsonString() returns a JSON-like String of this Notification.
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
The returned String is equal to the value of: "Request@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString() where contentAsJsonString() returns a JSON-like String of this Request.
toString() - Method in class eliasstar.jsonrpc.objects.Response
The returned String is equal to the value of: "Response@" + Integer.toHexString(hashCode()) + " " + contentAsJsonString() where contentAsJsonString() returns a JSON-like String of this 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).
A B C D E G H I J M N O P R S T W 
All Classes All Packages