public abstract class BaseArangoDriver extends Object
| Constructor and Description |
|---|
BaseArangoDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDocumentEndpointUrl(String database,
Object... paths) |
protected String |
createDocumentHandle(long collectionId,
String documentKey) |
protected String |
createDocumentHandle(String collectionName,
String documentKey) |
protected String |
createEndpointUrl(String database,
Object... paths) |
protected String |
createEndpointUrl(String database,
String str,
Object... paths) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz,
Class<?>... pclazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz,
Class<?>[] pclazz,
boolean validate)
Creates an entity object
|
protected <T> T |
createEntity(String str,
Class<T> clazz,
Class<?>... pclazz) |
protected <T> T |
createEntityImpl(HttpResponseEntity res,
Class<T> type) |
protected String |
createGharialEndpointUrl(String database,
Object... paths) |
protected String |
createIndexEndpointUrl(String database,
Object... paths) |
protected String |
createJobEndpointUrl(String database,
Object... paths) |
protected String |
createUserEndpointUrl(Object... paths) |
protected String |
getJSONResponseText(HttpResponseEntity res)
Gets the raw JSON string with results, from the Http response
|
protected void |
setKeyValueHeader(HttpResponseEntity res,
KeyValueEntity entity) |
protected void |
setStatusCode(HttpResponseEntity res,
BaseEntity entity) |
protected ReplicationDumpHeader |
toReplicationDumpHeader(HttpResponseEntity res) |
protected void |
validate(HttpResponseEntity res,
BaseEntity entity) |
protected void |
validateCollectionName(String name) |
protected void |
validateDatabaseName(String database,
boolean allowNull) |
protected void |
validateDocumentHandle(String documentHandle) |
protected String createDocumentHandle(String collectionName, String documentKey) throws ArangoException
ArangoExceptionprotected void validateCollectionName(String name) throws ArangoException
ArangoExceptionprotected void validateDocumentHandle(String documentHandle) throws ArangoException
ArangoExceptionprotected void validateDatabaseName(String database, boolean allowNull) throws ArangoException
database - allowNull - ArangoExceptionprotected void setKeyValueHeader(HttpResponseEntity res, KeyValueEntity entity) throws ArangoException
ArangoExceptionprotected ReplicationDumpHeader toReplicationDumpHeader(HttpResponseEntity res)
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz, Class<?>[] pclazz, boolean validate) throws ArangoException
res - the response of the databaseclazz - the class of the entity objectpclazz - the class of the object wrapped in the entity objectvalidate - true for validationArangoExceptionprotected String getJSONResponseText(HttpResponseEntity res) throws ArangoException
res - the response of the databaseArangoExceptionprotected <T> T createEntity(String str, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoExceptionprotected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz) throws ArangoException
ArangoExceptionprotected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoExceptionprotected void setStatusCode(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoExceptionprotected void validate(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoExceptionprotected <T> T createEntityImpl(HttpResponseEntity res, Class<T> type) throws ArangoException
ArangoExceptionprotected String createEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionprotected String createEndpointUrl(String database, String str, Object... paths) throws ArangoException
ArangoExceptionprotected String createUserEndpointUrl(Object... paths) throws ArangoException
ArangoExceptionprotected String createJobEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionprotected String createIndexEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionprotected String createGharialEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionprotected String createDocumentEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionCopyright © 2012–2016 ArangoDB GmbH. All rights reserved.