public abstract class BatchOperations extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BODY_KEY |
protected static String |
ID_KEY |
protected static org.codehaus.jackson.JsonFactory |
jsonFactory |
protected org.codehaus.jackson.map.ObjectMapper |
mapper |
protected static String |
METHOD_KEY |
protected static String |
TO_KEY |
protected WebServer |
webServer |
| Constructor and Description |
|---|
BatchOperations(WebServer webServer) |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected static final String ID_KEY
protected static final String METHOD_KEY
protected static final String BODY_KEY
protected static final String TO_KEY
protected static final org.codehaus.jackson.JsonFactory jsonFactory
protected final WebServer webServer
protected final org.codehaus.jackson.map.ObjectMapper mapper
public BatchOperations(WebServer webServer)
protected void addHeaders(InternalJettyServletRequest res, javax.ws.rs.core.HttpHeaders httpHeaders)
protected URI calculateTargetUri(javax.ws.rs.core.UriInfo serverUriInfo, String requestedPath)
protected String replaceLocationPlaceholders(String str, Map<Integer,String> locations)
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)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected 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
IOExceptionjavax.servlet.ServletExceptionprotected abstract void invoke(String method, String path, String body, Integer id, URI targetUri, InternalJettyServletRequest req, InternalJettyServletResponse res) throws IOException, javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.