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(String database,
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
ArangoException
protected void validateCollectionName(String name) throws ArangoException
ArangoException
protected void validateDocumentHandle(String documentHandle) throws ArangoException
ArangoException
protected void validateDatabaseName(String database, boolean allowNull) throws ArangoException
database
- allowNull
- ArangoException
protected void setKeyValueHeader(HttpResponseEntity res, KeyValueEntity entity) throws ArangoException
ArangoException
protected 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 validationArangoException
protected String getJSONResponseText(HttpResponseEntity res) throws ArangoException
res
- the response of the databaseArangoException
protected <T> T createEntity(String str, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoException
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz) throws ArangoException
ArangoException
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoException
protected void setStatusCode(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoException
protected void validate(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoException
protected <T> T createEntityImpl(HttpResponseEntity res, Class<T> type) throws ArangoException
ArangoException
protected String createEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
protected String createEndpointUrl(String database, String str, Object... paths) throws ArangoException
ArangoException
protected String createUserEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
protected String createJobEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
protected String createIndexEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
protected String createGharialEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
protected String createDocumentEndpointUrl(String database, Object... paths) throws ArangoException
ArangoException
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.