Class JsonErrorItemResponseParser
- java.lang.Object
-
- com.cognite.client.servicesV1.response.DefaultResponseParser
-
- com.cognite.client.servicesV1.response.JsonErrorItemResponseParser
-
- All Implemented Interfaces:
ResponseParser<String>,Serializable
public abstract class JsonErrorItemResponseParser extends DefaultResponseParser
Extracts a list of items from the error sub-path in a json payload.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJsonErrorItemResponseParser.Builder
-
Field Summary
-
Fields inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
instanceId, LOG, MAX_LENGTH_JSON_LOG, objectMapper
-
-
Constructor Summary
Constructors Constructor Description JsonErrorItemResponseParser()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static JsonErrorItemResponseParser.Builderbuilder()com.google.common.collect.ImmutableList<String>extractItems(String json)Extract the main items from a results json payload.abstract StringgetErrorSubPath()abstract JsonErrorItemResponseParser.BuildertoBuilder()-
Methods inherited from class com.cognite.client.servicesV1.response.DefaultResponseParser
extractItems, extractNextCursor, extractNextCursor, parseToString
-
-
-
-
Method Detail
-
builder
public static JsonErrorItemResponseParser.Builder builder()
-
toBuilder
public abstract JsonErrorItemResponseParser.Builder toBuilder()
-
getErrorSubPath
public abstract String getErrorSubPath()
-
extractItems
public com.google.common.collect.ImmutableList<String> extractItems(String json) throws Exception
Extract the main items from a results json payload.- Overrides:
extractItemsin classDefaultResponseParser- Parameters:
json- The results json payload- Returns:
- Throws:
IOExceptionIOExceptionException
-
-