Package co.arago.hiro.client.rest
Class GraphAPI.QueryBodyConf<T extends GraphAPI.QueryBodyConf<T,R>,R>
- java.lang.Object
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf<T,R>
-
- co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf<T,R>
-
- co.arago.hiro.client.rest.GraphAPI.QueryBodyConf<T,R>
-
- Type Parameters:
T- The Builder typeR- The type of the result expected fromAuthenticatedAPIHandler.APIRequestConf.execute()
- Direct Known Subclasses:
GraphAPI.QueryByIdsCommand,GraphAPI.QueryByXidCommand,GraphAPI.QueryGremlinCommand,GraphAPI.QueryTimeseriesCommand,GraphAPI.QueryVerticesCommand
- Enclosing class:
- GraphAPI
protected abstract static class GraphAPI.QueryBodyConf<T extends GraphAPI.QueryBodyConf<T,R>,R> extends AuthenticatedAPIHandler.SendBodyAPIRequestConf<T,R>
A config class that contains common parameters for all Graph Queries.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>bodyMap-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
body
-
Fields inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
fragment, headers, httpRequestTimeout, maxRetries, path, query
-
-
Constructor Summary
Constructors Constructor Description QueryBodyConf(java.lang.String... pathParts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TaddToBody(java.lang.String id, java.lang.String value)Set arbitrary string to thebodyMap.protected java.lang.StringcreateBody()TsetFields(java.lang.String fields)Set query fieldsTsetIncludeDeleted(java.lang.Boolean includeDeleted)Set includeDeletedTsetListMeta(java.lang.Boolean listMeta)Set listMeta-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.SendBodyAPIRequestConf
setBody, setJsonBodyFromMap, setJsonBodyFromMessage
-
Methods inherited from class co.arago.hiro.client.rest.AuthenticatedAPIHandler.APIRequestConf
execute, self, setHttpHeaders, setHttpRequestTimeout, setMaxRetries, setUrlFragment, setUrlQuery
-
-
-
-
Method Detail
-
addToBody
public T addToBody(java.lang.String id, java.lang.String value)
Set arbitrary string to thebodyMap.- Parameters:
id- Key for the mapvalue- Value for the map. Existing keys in the map will be removed when value == null.- Returns:
AuthenticatedAPIHandler.APIRequestConf.self();
-
setFields
public T setFields(java.lang.String fields)
Set query fields- Parameters:
fields- the comma separated list of fields to return.- Returns:
- this
-
setListMeta
public T setListMeta(java.lang.Boolean listMeta)
Set listMeta- Parameters:
listMeta- return list type attributes with metadata- Returns:
- this
-
setIncludeDeleted
public T setIncludeDeleted(java.lang.Boolean includeDeleted)
Set includeDeleted- Parameters:
includeDeleted- allow getting if ogit/_is-deleted=true- Returns:
- this
-
createBody
protected java.lang.String createBody()
-
-