public class JsonSystem extends SimpleSystemImpl
| Modifier and Type | Field and Description |
|---|---|
protected static Logger |
LOGGER |
cacheMapdebug| Constructor and Description |
|---|
JsonSystem()
create a new JsonSystem with it's own graph
|
JsonSystem(SimpleGraph graph)
create a JsonSystem using the same simpleGraph
|
| Modifier and Type | Method and Description |
|---|---|
SimpleSystem |
connect(String... params) |
com.sun.jersey.api.client.WebResource.Builder |
getBuilder(String url)
get a builder for the given url
|
Class<? extends SimpleNode> |
getNodeClass() |
SimpleNode |
moveTo(String nodeQuery,
String... keys) |
static JsonSystem |
of(SimpleGraph graph,
String json)
create a new JsonSystem based on the given graph and json string
|
SimpleNode |
of(String url,
com.sun.jersey.api.client.ClientResponse response)
get a SimpleNode of the given url and response
|
SimpleNode |
post(String url,
String postJson)
post the given postJson json data to the given url
|
close, flushCache, getName, getVersion, optionalStartNode, setName, setVersionaddVertex, getStartNode, graph, isDebug, setDebug, setStartNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddVertex, forAll, g, getStartNode, graph, isDebug, setDebug, setStartNodeprotected static Logger LOGGER
public JsonSystem(SimpleGraph graph)
graph - public JsonSystem()
public SimpleSystem connect(String... params) throws Exception
Exceptionpublic com.sun.jersey.api.client.WebResource.Builder getBuilder(String url)
url - public SimpleNode post(String url, String postJson)
url - postJson - public SimpleNode of(String url, com.sun.jersey.api.client.ClientResponse response)
url - response - public SimpleNode moveTo(String nodeQuery, String... keys)
public Class<? extends SimpleNode> getNodeClass()
public static JsonSystem of(SimpleGraph graph, String json)
graph - - the graph to link to (may be null for creating an independent
system)json - - the json string to parseExceptionCopyright © 2019 BITPlan GmbH. All rights reserved.