Class AwsCborProtocolFactory
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
-
- software.amazon.awssdk.protocols.cbor.AwsCborProtocolFactory
-
@SdkProtectedApi 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_ENABLEDis set to false.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAwsCborProtocolFactory.BuilderBuilder forAwsJsonProtocolFactory.
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
AWS_JSON, GENERATES_BODY, HTTP_EXTRA_HEADERS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCborProtocolFactory.Builderbuilder()static ProtocolUnmarshallDependenciesdefaultProtocolUnmarshallDependencies()protected JsonContentTypeResolvergetContentTypeResolver()protected Map<MarshallLocation,TimestampFormatTrait.Format>getDefaultTimestampFormats()CBOR uses epoch millis for timestamps rather than epoch seconds with millisecond decimal precision like JSON protocols.protected StructuredJsonFactorygetSdkFactory()static DefaultProtocolUnmarshallDependenciesnewProtocolUnmarshallDependencies()-
Methods inherited from class software.amazon.awssdk.protocols.json.BaseAwsJsonProtocolFactory
createErrorResponseHandler, createErrorResponseHandler, createProtocolMarshaller, createResponseHandler, createResponseHandler, getContentType
-
-
-
-
Method Detail
-
getContentTypeResolver
protected JsonContentTypeResolver getContentTypeResolver()
- Overrides:
getContentTypeResolverin classBaseAwsJsonProtocolFactory- Returns:
- Content type resolver implementation to use.
-
getSdkFactory
protected StructuredJsonFactory getSdkFactory()
- Overrides:
getSdkFactoryin classBaseAwsJsonProtocolFactory- Returns:
- Instance of
StructuredJsonFactoryto 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:
getDefaultTimestampFormatsin classBaseAwsJsonProtocolFactory
-
builder
public static AwsCborProtocolFactory.Builder builder()
-
defaultProtocolUnmarshallDependencies
public static ProtocolUnmarshallDependencies defaultProtocolUnmarshallDependencies()
-
newProtocolUnmarshallDependencies
public static DefaultProtocolUnmarshallDependencies newProtocolUnmarshallDependencies()
-
-