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, util
ArangoRoute 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 routeArangoRoute
ArangoRoute withHeader(String key, Object value)
key
- Header keyvalue
- Header value (the toString()
method will be called for the value}ArangoRoute
ArangoRoute withQueryParam(String key, Object value)
key
- Query parameter keyvalue
- Query parameter value (the toString()
method will be called for the value}ArangoRoute
ArangoRoute withBody(Object body)
VPackSlice
.body
- The request bodyArangoRoute
Response delete() throws ArangoDBException
ArangoDBException
Response get() throws ArangoDBException
ArangoDBException
Response head() throws ArangoDBException
ArangoDBException
Response patch() throws ArangoDBException
ArangoDBException
Response post() throws ArangoDBException
ArangoDBException
Response put() throws ArangoDBException
ArangoDBException
Copyright © 2016–2022 ArangoDB GmbH. All rights reserved.