public abstract class BaseArangoDriver extends Object
| Constructor and Description |
|---|
BaseArangoDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDocumentHandle(long collectionId,
String documentKey) |
protected String |
createDocumentHandle(String collectionName,
String documentKey) |
protected String |
createEndpointUrl(String baseUrl,
String database,
Object... paths) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<? extends BaseEntity> clazz,
Class<?>... pclazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<? extends BaseEntity> clazz,
Class<?>[] pclazz,
boolean validate)
HTTPレスポンスから指定した型へ変換する。 レスポンスがエラーであるかを確認して、エラーの場合は例外を投げる。
|
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz) |
protected <T> T |
createEntity(String str,
Class<T> clazz,
Class<?>... pclazz) |
protected <T> T |
createEntityImpl(HttpResponseEntity res,
Class<?> type) |
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 - ArangoException://www.arangodb.com/manuals/current/NamingConventions.html#DatabaseNamesprotected void setKeyValueHeader(HttpResponseEntity res, KeyValueEntity entity) throws ArangoException
ArangoExceptionprotected ReplicationDumpHeader toReplicationDumpHeader(HttpResponseEntity res)
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<? extends BaseEntity> clazz, Class<?>[] pclazz, boolean validate) throws ArangoException
res - type - validate - ArangoExceptionprotected <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<? extends BaseEntity> 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<?> type) throws ArangoException
ArangoExceptionprotected String createEndpointUrl(String baseUrl, String database, Object... paths) throws ArangoException
ArangoExceptionCopyright © 2012–2015 ArangoDB GmbH. All rights reserved.