ikrs.json.rpc
Class JSONRPCValueFactory

java.lang.Object
  extended by ikrs.json.parser.DefaultJSONValueFactory
      extended by ikrs.json.rpc.JSONRPCValueFactory
All Implemented Interfaces:
JSONValueFactory

public class JSONRPCValueFactory
extends DefaultJSONValueFactory

This class has only one purpose: create a JSONRPCRequest instead of a normal JSONValue when the outer parent object was read.


Constructor Summary
JSONRPCValueFactory()
           
 
Method Summary
 JSONObject createObject()
          This method creates a non-embedded JSON object (first single value from the input).
 
Methods inherited from class ikrs.json.parser.DefaultJSONValueFactory
createArray, createArray, createArray, createBoolean, createBoolean, createBoolean, createNull, createNull, createNull, createNumber, createNumber, createNumber, createObject, createObject, createString, createString, createString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONRPCValueFactory

public JSONRPCValueFactory()
Method Detail

createObject

public JSONObject createObject()
This method creates a non-embedded JSON object (first single value from the input).

Specified by:
createObject in interface JSONValueFactory
Overrides:
createObject in class DefaultJSONValueFactory
Returns:
A single JSON object.