Copyright (c) Vladimir Dzhuvinov, 2010 - 2012
Provides a client-side class for dispatching requests and notifications to a JSON-RPC 2.0 server. The JSON-RPC 2.0 messages are sent by HTTP(S) POST.
- Customise the "Content-Type" header in HTTP POST requests.
- Set an "Origin" header in HTTP POST requests to simulate Cross-Origin Resource Sharing (CORS) requests from a browser.
- Accept HTTP cookies (if client sessions are established by this mean instead of through the JSON-RPC protocol itself).
- Customise the allowable "Content-Type" header values in HTTP POST responses.
- Preserve parse order of JSON object members in JSON-RPC 2.0 response results (for human facing clients, e.g. the JSON-RPC 2.0 Shell).
- Ignore version 2.0 checks when parsing responses to allow client sessions to older JSON-RPC (1.0) servers.
- Parse non-standard attributes appended in JSON-RPC 2.0 responses.
- Trust all X.509 server certificates (for HTTPS connections), including self-signed.
- Java 11 or later
- The JSON-RPC 2.0 Base package
com.thetransactioncompany.jsonrpc2
to represent, serialise and parse JSON-RPC 2.0 messages. Available from http://software.dzhuvinov.com/json-rpc-2.0-base.html
Be sure to replace the VERSION key below with the latest version shown above!
Maven
<dependency>
<groupId>com.github.cotogoto</groupId>
<artifactId>jsonrpc2-client</artifactId>
<version>VERSION</version>
</dependency>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
README.txt
This file.LICENSE.txt
The software license.CHANGELOG.txt
The change log.jsonrpc2-client-{version}.jar
JAR file containing the compiled package classes.javadoc/
The Java Docs for this package.Example.java
Example client session usage.build.xml
The Apache Ant build file.lib/
The package dependencies and their licenses.src/
The source code for this package.test/
JUnit tests for this package.
For complete JSON-RPC 2.0 Client documentation, examples and updates visit
http://software.dzhuvinov.com/json-rpc-2.0-client.html
The JSON-RPC 2.0 specification and user group forum can be found at