com.thetransactioncompany.jsonrpc2.examples
Class Example2
java.lang.Object
com.thetransactioncompany.jsonrpc2.examples.Example2
public class Example2
- extends Object
This example shows how to discern between received JSON-RPC 2.0 requests
and notifications on the server side.
- Author:
- Vladimir Dzhuvinov
Method Summary |
static void |
main(String[] args)
|
static void |
parseMessage(String jsonString)
Parses a JSON-RPC 2.0 message and determines its type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Example2
public Example2()
parseMessage
public static void parseMessage(String jsonString)
- Parses a JSON-RPC 2.0 message and determines its type
- Parameters:
jsonString
- The JSON-RPC 2.0 message encoded as JSON string.
main
public static void main(String[] args)
Copyright © 2013 The Transaction Company. All Rights Reserved.