@@ -78,11 +78,6 @@ public String name() {
7878 return name ;
7979 }
8080
81- public String createDocumentHandle (final String key ) {
82- executor .validateDocumentKey (key );
83- return executor .createPath (name , key );
84- }
85-
8681 protected <T > Request insertDocumentRequest (final T value , final DocumentCreateOptions options ) {
8782 final Request request = new Request (db , RequestType .POST ,
8883 executor .createPath (ArangoDBConstants .PATH_API_DOCUMENT , name ));
@@ -186,7 +181,7 @@ protected Request importDocumentsRequest(final DocumentImportOptions options) {
186181
187182 protected Request getDocumentRequest (final String key , final DocumentReadOptions options ) {
188183 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 )));
190185 final DocumentReadOptions params = (options != null ? options : new DocumentReadOptions ());
191186 request .putHeaderParam (ArangoDBConstants .IF_NONE_MATCH , params .getIfNoneMatch ());
192187 request .putHeaderParam (ArangoDBConstants .IF_MATCH , params .getIfMatch ());
@@ -198,7 +193,7 @@ protected <T> Request replaceDocumentRequest(
198193 final T value ,
199194 final DocumentReplaceOptions options ) {
200195 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 )));
202197 final DocumentReplaceOptions params = (options != null ? options : new DocumentReplaceOptions ());
203198 request .putQueryParam (ArangoDBConstants .WAIT_FOR_SYNC , params .getWaitForSync ());
204199 request .putQueryParam (ArangoDBConstants .IGNORE_REVS , params .getIgnoreRevs ());
@@ -290,7 +285,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
290285 protected <T > Request updateDocumentRequest (final String key , final T value , final DocumentUpdateOptions options ) {
291286 final Request request ;
292287 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 )));
294289 final DocumentUpdateOptions params = (options != null ? options : new DocumentUpdateOptions ());
295290 request .putQueryParam (ArangoDBConstants .KEEP_NULL , params .getKeepNull ());
296291 request .putQueryParam (ArangoDBConstants .MERGE_OBJECTS , params .getMergeObjects ());
@@ -384,7 +379,7 @@ public MultiDocumentEntity<DocumentUpdateEntity<T>> deserialize(final Response r
384379 protected Request deleteDocumentRequest (final String key , final DocumentDeleteOptions options ) {
385380 final Request request ;
386381 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 )));
388383 final DocumentDeleteOptions params = (options != null ? options : new DocumentDeleteOptions ());
389384 request .putQueryParam (ArangoDBConstants .WAIT_FOR_SYNC , params .getWaitForSync ());
390385 request .putQueryParam (ArangoDBConstants .RETURN_OLD , params .getReturnOld ());
@@ -453,7 +448,7 @@ public MultiDocumentEntity<DocumentDeleteEntity<T>> deserialize(final Response r
453448 protected Request documentExistsRequest (final String key , final DocumentExistsOptions options ) {
454449 final Request request ;
455450 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 )));
457452 final DocumentExistsOptions params = (options != null ? options : new DocumentExistsOptions ());
458453 request .putHeaderParam (ArangoDBConstants .IF_MATCH , params .getIfMatch ());
459454 request .putHeaderParam (ArangoDBConstants .IF_NONE_MATCH , params .getIfNoneMatch ());
0 commit comments