Class SdkRpcV2CborGenerator
java.lang.Object
software.amazon.awssdk.protocols.json.SdkJsonGenerator
software.amazon.awssdk.protocols.rpcv2.internal.SdkRpcV2CborGenerator
- All Implemented Interfaces:
StructuredJsonGenerator
Thin wrapper around Jackson's JSON generator for CBOR.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.awssdk.protocols.json.SdkJsonGenerator
SdkJsonGenerator.JsonGenerationException
-
Field Summary
Fields inherited from interface software.amazon.awssdk.protocols.json.StructuredJsonGenerator
NO_OP
-
Method Summary
Modifier and TypeMethodDescriptionwriteStartArray
(int size) writeValue
(double val) writeValue
(float val) writeValue
(Instant instant) Jackson doesn't have native support for timestamp.Methods inherited from class software.amazon.awssdk.protocols.json.SdkJsonGenerator
getBytes, getContentType, writeEndArray, writeEndObject, writeFieldName, writeNull, writeNumber, writeStartArray, writeStartObject, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue, writeValue
-
Method Details
-
writeValue
Jackson doesn't have native support for timestamp. As per the RFC 7049 (https://tools.ietf.org/html/rfc7049#section-2.4.1) we will need to write a tag and write the epoch.- Specified by:
writeValue
in interfaceStructuredJsonGenerator
- Overrides:
writeValue
in classSdkJsonGenerator
-
writeStartArray
-
writeValue
- Specified by:
writeValue
in interfaceStructuredJsonGenerator
- Overrides:
writeValue
in classSdkJsonGenerator
-
writeValue
- Specified by:
writeValue
in interfaceStructuredJsonGenerator
- Overrides:
writeValue
in classSdkJsonGenerator
-