@@ -78,11 +78,6 @@ public String name() {
78
78
return name ;
79
79
}
80
80
81
- public String createDocumentHandle (final String key ) {
82
- executor .validateDocumentKey (key );
83
- return executor .createPath (name , key );
84
- }
85
-
86
81
protected <T > Request insertDocumentRequest (final T value , final DocumentCreateOptions options ) {
87
82
final Request request = new Request (db , RequestType .POST ,
88
83
executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , name ));
@@ -186,7 +181,7 @@ protected Request importDocumentsRequest(final DocumentImportOptions options) {
186
181
187
182
protected Request getDocumentRequest (final String key , final DocumentReadOptions options ) {
188
183
final Request request = new Request (db , RequestType .GET ,
189
- executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , createDocumentHandle (key )));
184
+ executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , executor . createDocumentHandle (name , key )));
190
185
final DocumentReadOptions params = (options != null ? options : new DocumentReadOptions ());
191
186
request .putHeaderParam (ArangoDBConstants .IF_NONE_MATCH , params .getIfNoneMatch ());
192
187
request .putHeaderParam (ArangoDBConstants .IF_MATCH , params .getIfMatch ());
@@ -198,7 +193,7 @@ protected <T> Request replaceDocumentRequest(
198
193
final T value ,
199
194
final DocumentReplaceOptions options ) {
200
195
final Request request = new Request (db , RequestType .PUT ,
201
- executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , createDocumentHandle (key )));
196
+ executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , executor . createDocumentHandle (name , key )));
202
197
final DocumentReplaceOptions params = (options != null ? options : new DocumentReplaceOptions ());
203
198
request .putQueryParam (ArangoDBConstants .WAIT_FOR_SYNC , params .getWaitForSync ());
204
199
request .putQueryParam (ArangoDBConstants .IGNORE_REVS , params .getIgnoreRevs ());
@@ -290,7 +285,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
290
285
protected <T > Request updateDocumentRequest (final String key , final T value , final DocumentUpdateOptions options ) {
291
286
final Request request ;
292
287
request = new Request (db , RequestType .PATCH ,
293
- executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , createDocumentHandle (key )));
288
+ executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , executor . createDocumentHandle (name , key )));
294
289
final DocumentUpdateOptions params = (options != null ? options : new DocumentUpdateOptions ());
295
290
request .putQueryParam (ArangoDBConstants .KEEP_NULL , params .getKeepNull ());
296
291
request .putQueryParam (ArangoDBConstants .MERGE_OBJECTS , params .getMergeObjects ());
@@ -384,7 +379,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
384
379
protected Request deleteDocumentRequest (final String key , final DocumentDeleteOptions options ) {
385
380
final Request request ;
386
381
request = new Request (db , RequestType .DELETE ,
387
- executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , createDocumentHandle (key )));
382
+ executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , executor . createDocumentHandle (name , key )));
388
383
final DocumentDeleteOptions params = (options != null ? options : new DocumentDeleteOptions ());
389
384
request .putQueryParam (ArangoDBConstants .WAIT_FOR_SYNC , params .getWaitForSync ());
390
385
request .putQueryParam (ArangoDBConstants .RETURN_OLD , params .getReturnOld ());
@@ -453,7 +448,7 @@ public MultiDocumentEntity<DocumentDeleteEntity<T>> deserialize(final Response r
453
448
protected Request documentExistsRequest (final String key , final DocumentExistsOptions options ) {
454
449
final Request request ;
455
450
request = new Request (db , RequestType .HEAD ,
456
- executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , createDocumentHandle (key )));
451
+ executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , executor . createDocumentHandle (name , key )));
457
452
final DocumentExistsOptions params = (options != null ? options : new DocumentExistsOptions ());
458
453
request .putHeaderParam (ArangoDBConstants .IF_MATCH , params .getIfMatch ());
459
454
request .putHeaderParam (ArangoDBConstants .IF_NONE_MATCH , params .getIfNoneMatch ());
0 commit comments