org.neo4j.server.rest.batch
Class BatchOperations
java.lang.Object
org.neo4j.server.rest.batch.BatchOperations
- Direct Known Subclasses:
- NonStreamingBatchOperations, StreamingBatchOperations
public abstract class BatchOperations
- extends Object
|
Method Summary |
protected void |
addHeaders(InternalJettyServletRequest res,
javax.ws.rs.core.HttpHeaders httpHeaders)
|
protected URI |
calculateTargetUri(javax.ws.rs.core.UriInfo serverUriInfo,
String requestedPath)
|
protected abstract void |
invoke(String method,
String path,
String body,
Integer id,
URI targetUri,
InternalJettyServletRequest req,
InternalJettyServletResponse res)
|
protected boolean |
is2XXStatusCode(int statusCode)
|
protected void |
parseAndPerform(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders httpHeaders,
InputStream body,
Map<Integer,String> locations)
|
protected void |
performRequest(javax.ws.rs.core.UriInfo uriInfo,
String method,
String path,
String body,
Integer id,
javax.ws.rs.core.HttpHeaders httpHeaders,
Map<Integer,String> locations)
|
protected String |
replaceLocationPlaceholders(String str,
Map<Integer,String> locations)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_KEY
protected static final String ID_KEY
- See Also:
- Constant Field Values
METHOD_KEY
protected static final String METHOD_KEY
- See Also:
- Constant Field Values
BODY_KEY
protected static final String BODY_KEY
- See Also:
- Constant Field Values
TO_KEY
protected static final String TO_KEY
- See Also:
- Constant Field Values
jsonFactory
protected static final org.codehaus.jackson.JsonFactory jsonFactory
webServer
protected final WebServer webServer
mapper
protected final org.codehaus.jackson.map.ObjectMapper mapper
BatchOperations
public BatchOperations(WebServer webServer)
addHeaders
protected void addHeaders(InternalJettyServletRequest res,
javax.ws.rs.core.HttpHeaders httpHeaders)
calculateTargetUri
protected URI calculateTargetUri(javax.ws.rs.core.UriInfo serverUriInfo,
String requestedPath)
replaceLocationPlaceholders
protected String replaceLocationPlaceholders(String str,
Map<Integer,String> locations)
is2XXStatusCode
protected boolean is2XXStatusCode(int statusCode)
parseAndPerform
protected void parseAndPerform(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.HttpHeaders httpHeaders,
InputStream body,
Map<Integer,String> locations)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
performRequest
protected void performRequest(javax.ws.rs.core.UriInfo uriInfo,
String method,
String path,
String body,
Integer id,
javax.ws.rs.core.HttpHeaders httpHeaders,
Map<Integer,String> locations)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
invoke
protected abstract void invoke(String method,
String path,
String body,
Integer id,
URI targetUri,
InternalJettyServletRequest req,
InternalJettyServletResponse res)
throws IOException,
javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.