public interface ArangoRoute extends ArangoSerializationAccessor
| Modifier and Type | Method and Description |
|---|---|
Response |
delete()
Performs a DELETE request to the given URL and returns the server response.
|
Response |
get()
Performs a GET request to the given URL and returns the server response.
|
Response |
head()
Performs a HEAD request to the given URL and returns the server response.
|
Response |
patch()
Performs a PATCH request to the given URL and returns the server response.
|
Response |
post()
Performs a POST request to the given URL and returns the server response.
|
Response |
put()
Performs a PUT request to the given URL and returns the server response.
|
ArangoRoute |
route(String... path)
Returns a new
ArangoRoute instance for the given path (relative to the current route) that can be used to
perform arbitrary requests. |
ArangoRoute |
withBody(Object body)
The response body.
|
ArangoRoute |
withHeader(String key,
Object value)
Header that should be sent with each request to the route.
|
ArangoRoute |
withQueryParam(String key,
Object value)
Query parameter that should be sent with each request to the route.
|
util, utilArangoRoute route(String... path)
ArangoRoute instance for the given path (relative to the current route) that can be used to
perform arbitrary requests.path - The relative URL of the routeArangoRouteArangoRoute withHeader(String key, Object value)
key - Header keyvalue - Header value (the toString() method will be called for the value}ArangoRouteArangoRoute withQueryParam(String key, Object value)
key - Query parameter keyvalue - Query parameter value (the toString() method will be called for the value}ArangoRouteArangoRoute withBody(Object body)
VPackSlice.body - The request bodyArangoRouteResponse delete() throws ArangoDBException
ArangoDBExceptionResponse get() throws ArangoDBException
ArangoDBExceptionResponse head() throws ArangoDBException
ArangoDBExceptionResponse patch() throws ArangoDBException
ArangoDBExceptionResponse post() throws ArangoDBException
ArangoDBExceptionResponse put() throws ArangoDBException
ArangoDBExceptionCopyright © 2016–2020 ArangoDB GmbH. All rights reserved.