Class AwsCborProtocolFactory
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
-
- software.amazon.awssdk.protocols.cbor.AwsCborProtocolFactory
-
public final class AwsCborProtocolFactory extends BaseAwsJsonProtocolFactory
Protocol factory for AWS/CBOR protocols. Supports both JSON RPC and REST JSON versions of CBOR. Defaults to the CBOR wire format but can fallback to standard JSON if theSdkSystemSetting.CBOR_ENABLED
is set to false.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsCborProtocolFactory.Builder
Builder forAwsJsonProtocolFactory
.
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
AWS_JSON
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCborProtocolFactory.Builder
builder()
protected JsonContentTypeResolver
getContentTypeResolver()
protected Map<MarshallLocation,TimestampFormatTrait.Format>
getDefaultTimestampFormats()
CBOR uses epoch millis for timestamps rather than epoch seconds with millisecond decimal precision like JSON protocols.protected StructuredJsonFactory
getSdkFactory()
-
Methods inherited from class software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
createErrorResponseHandler, createProtocolMarshaller, createResponseHandler, createResponseHandler, getContentType
-
-
-
-
Method Detail
-
getContentTypeResolver
protected JsonContentTypeResolver getContentTypeResolver()
- Overrides:
getContentTypeResolver
in classBaseAwsJsonProtocolFactory
- Returns:
- Content type resolver implementation to use.
-
getSdkFactory
protected StructuredJsonFactory getSdkFactory()
- Overrides:
getSdkFactory
in classBaseAwsJsonProtocolFactory
- Returns:
- Instance of
StructuredJsonFactory
to use in creating handlers.
-
getDefaultTimestampFormats
protected Map<MarshallLocation,TimestampFormatTrait.Format> getDefaultTimestampFormats()
CBOR uses epoch millis for timestamps rather than epoch seconds with millisecond decimal precision like JSON protocols.- Overrides:
getDefaultTimestampFormats
in classBaseAwsJsonProtocolFactory
-
builder
public static AwsCborProtocolFactory.Builder builder()
-
-