Skip to content

Java library for creating client sessions to remote JSON-RPC 2.0 services (clone http://software.dzhuvinov.com/json-rpc-2.0-client.html)

License

Notifications You must be signed in to change notification settings

cotogoto/jsonrpc2-client

 
 

Repository files navigation

JSON-RPC 2.0 Client

Copyright (c) Vladimir Dzhuvinov, 2010 - 2012

README

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.

Optional client session features:

  • 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.

Requirements:

Download:

Latest Version:

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>

Package content:

  • 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

http://groups.google.com/group/json-rpc

About

Java library for creating client sessions to remote JSON-RPC 2.0 services (clone http://software.dzhuvinov.com/json-rpc-2.0-client.html)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%