Class JsonDataItemResponseParser
java.lang.Object
com.cognite.client.servicesV1.response.DefaultResponseParser
com.cognite.client.servicesV1.response.JsonDataItemResponseParser
- All Implemented Interfaces:
ResponseParser<String>,Serializable
Extracts results items from a json payload corresponding to the api v0.6 specification.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
instanceId, LOG, MAX_LENGTH_JSON_LOG, objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()com.google.common.collect.ImmutableList<String>extractItems(String json) Extract the main items from a results json payload corresponding to v0.6 spec.extractNextCursor(String json) Extract the next cursor from a results json payload.abstract JsonDataItemResponseParser.BuilderMethods inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
extractItems, extractNextCursor, parseToString
-
Constructor Details
-
JsonDataItemResponseParser
public JsonDataItemResponseParser()
-
-
Method Details
-
builder
-
toBuilder
-
extractNextCursor
Extract the next cursor from a results json payload.- Overrides:
extractNextCursorin classDefaultResponseParser- Parameters:
json- The results json payload- Returns:
- Throws:
IOException
-
extractItems
Extract the main items from a results json payload corresponding to v0.6 spec.- Overrides:
extractItemsin classDefaultResponseParser- Parameters:
json- The results json payload- Returns:
- Throws:
IOExceptionIOExceptionException
-