|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tinkerpop.rexster.BaseResource
com.tinkerpop.rexster.AbstractSubResource
com.tinkerpop.rexster.VertexResource
public class VertexResource
Field Summary |
---|
Fields inherited from class com.tinkerpop.rexster.AbstractSubResource |
---|
extensionCache |
Fields inherited from class com.tinkerpop.rexster.BaseResource |
---|
httpServletRequest, producesVariantList, resultObject, securityContext, servletContext, sh, uriInfo |
Constructor Summary | |
---|---|
VertexResource()
|
|
VertexResource(javax.ws.rs.core.UriInfo ui,
javax.servlet.http.HttpServletRequest req,
RexsterApplication ra)
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
deleteVertex(String graphName,
String id)
DELETE http://host/graph/vertices/id graph.removeVertex(graph.getVertex(id)); DELETE http://host/graph/vertices/id?key1&key2 Vertex v = graph.getVertex(id); v.removeProperty(key1); v.removeProperty(key2); |
javax.ws.rs.core.Response |
deleteVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
deleteVertexExtension(String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
getSingleVertex(String graphName,
String id)
GET http://host/graph/vertices/id graph.getVertex(id); |
javax.ws.rs.core.Response |
getSingleVertexRexsterJson(String graphName,
String id)
|
javax.ws.rs.core.Response |
getSingleVertexRexsterTypedJson(String graphName,
String id)
|
javax.ws.rs.core.Response |
getVertexEdges(String graphName,
String vertexId,
String direction)
GET http://host/graph/vertices/id/direction graph.getVertex(id).get{Direction}Edges(); |
javax.ws.rs.core.Response |
getVertexEdgesRexsterTypedJson(String graphName,
String vertexId,
String direction)
|
javax.ws.rs.core.Response |
getVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
getVertices(String graphName)
GET http://host/graph/vertices graph.getVertices(); |
javax.ws.rs.core.Response |
getVerticesRexsterJson(String graphName)
|
javax.ws.rs.core.Response |
headVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
headVertexExtension(String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
optionsSingleVertex()
|
javax.ws.rs.core.Response |
optionsVertexEdges()
|
javax.ws.rs.core.Response |
optionsVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
optionsVertexExtension(String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
optionsVertices()
|
javax.ws.rs.core.Response |
postNullVertexOnUri(javax.ws.rs.core.Request request,
String graphName)
POST http://host/graph/vertices graph.addVertex(null); |
javax.ws.rs.core.Response |
postNullVertexRexsterConsumesJson(javax.ws.rs.core.Request request,
String graphName,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
postNullVertexRexsterConsumesTypedJson(javax.ws.rs.core.Request request,
String graphName,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
postVertexConsumesJson(javax.ws.rs.core.Request request,
String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
POST http://host/graph/vertices/id Vertex v = graph.addVertex(id); v.setProperty(key,value); |
javax.ws.rs.core.Response |
postVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
postVertexExtension(String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
postVertexOnUri(javax.ws.rs.core.Request request,
String graphName,
String id)
POST http://host/graph/vertices/id?key=value Vertex v = graph.addVertex(id); v.setProperty(key,value); |
javax.ws.rs.core.Response |
postVertexRexsterConsumesTypedJson(javax.ws.rs.core.Request request,
String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
putVertexConsumesJson(javax.ws.rs.core.Request request,
String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
PUT http://host/graph/vertices/id Vertex v = graph.addVertex(id); v.setProperty(key,value); |
javax.ws.rs.core.Response |
putVertexConsumesTypedJson(javax.ws.rs.core.Request request,
String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
javax.ws.rs.core.Response |
putVertexConsumesUri(javax.ws.rs.core.Request request,
String graphName,
String id)
PUT http://host/graph/vertices/id?key=value remove all properties v.setProperty(key,value); |
javax.ws.rs.core.Response |
putVertexExtension(String graphName,
String id)
|
javax.ws.rs.core.Response |
putVertexExtension(String graphName,
String id,
org.codehaus.jettison.json.JSONObject json)
|
Methods inherited from class com.tinkerpop.rexster.AbstractSubResource |
---|
findExtensionClasses, findExtensionMethod, getRexsterApplicationGraph, invokeExtension, invokeExtension, invokeExtension, invokeExtension, parseUriForExtensionSegment, tryAppendRexsterAttributesIfJson |
Methods inherited from class com.tinkerpop.rexster.BaseResource |
---|
buildOptionsResponse, buildOptionsResponse, generateErrorObject, generateErrorObject, generateErrorObjectJsonFail, getNonRexsterRequest, getNonRexsterRequestKeys, getRequestObject, getRequestObject, getRequestObjectFlat, getRexsterApplication, getTimeAlive, getUriPath, setRequestObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VertexResource()
public VertexResource(javax.ws.rs.core.UriInfo ui, javax.servlet.http.HttpServletRequest req, RexsterApplication ra)
Method Detail |
---|
public javax.ws.rs.core.Response optionsVertices()
public javax.ws.rs.core.Response getVertices(String graphName)
public javax.ws.rs.core.Response getVerticesRexsterJson(String graphName)
public javax.ws.rs.core.Response optionsSingleVertex()
public javax.ws.rs.core.Response getSingleVertex(String graphName, String id)
public javax.ws.rs.core.Response getSingleVertexRexsterJson(String graphName, String id)
public javax.ws.rs.core.Response getSingleVertexRexsterTypedJson(String graphName, String id)
public javax.ws.rs.core.Response headVertexExtension(String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response headVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response putVertexExtension(String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response putVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response optionsVertexExtension(String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response optionsVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response deleteVertexExtension(String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response deleteVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response postVertexExtension(String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response postVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response getVertexExtension(String graphName, String id)
public javax.ws.rs.core.Response optionsVertexEdges()
public javax.ws.rs.core.Response getVertexEdges(String graphName, String vertexId, String direction)
public javax.ws.rs.core.Response getVertexEdgesRexsterTypedJson(String graphName, String vertexId, String direction)
public javax.ws.rs.core.Response postNullVertexRexsterConsumesJson(@Context javax.ws.rs.core.Request request, String graphName, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response postNullVertexRexsterConsumesTypedJson(@Context javax.ws.rs.core.Request request, String graphName, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response postNullVertexOnUri(@Context javax.ws.rs.core.Request request, String graphName)
public javax.ws.rs.core.Response postVertexConsumesJson(@Context javax.ws.rs.core.Request request, String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response postVertexRexsterConsumesTypedJson(@Context javax.ws.rs.core.Request request, String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response postVertexOnUri(@Context javax.ws.rs.core.Request request, String graphName, String id)
public javax.ws.rs.core.Response putVertexConsumesJson(@Context javax.ws.rs.core.Request request, String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response putVertexConsumesTypedJson(@Context javax.ws.rs.core.Request request, String graphName, String id, org.codehaus.jettison.json.JSONObject json)
public javax.ws.rs.core.Response putVertexConsumesUri(@Context javax.ws.rs.core.Request request, String graphName, String id)
public javax.ws.rs.core.Response deleteVertex(String graphName, String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |