Class BaseAwsStructuredJsonFactory
java.lang.Object
software.amazon.awssdk.protocols.json.BaseAwsStructuredJsonFactory
- All Implemented Interfaces:
StructuredJsonFactory
@SdkProtectedApi
public abstract class BaseAwsStructuredJsonFactory
extends Object
implements StructuredJsonFactory
Generic implementation of a structured JSON factory that is pluggable for different variants of
JSON.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseAwsStructuredJsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateWriter(String contentType) Returns theStructuredJsonGeneratorto be used for marshalling the request.protected abstract StructuredJsonGeneratorcreateWriter(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory, String contentType) getErrorCodeParser(String customErrorCodeFieldName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.protocols.json.StructuredJsonFactory
getJsonFactory
-
Constructor Details
-
BaseAwsStructuredJsonFactory
protected BaseAwsStructuredJsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory)
-
-
Method Details
-
createWriter
Description copied from interface:StructuredJsonFactoryReturns theStructuredJsonGeneratorto be used for marshalling the request.- Specified by:
createWriterin interfaceStructuredJsonFactory- Parameters:
contentType- Content type to send for requests.
-
createWriter
protected abstract StructuredJsonGenerator createWriter(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory, String contentType) -
getErrorCodeParser
- Specified by:
getErrorCodeParserin interfaceStructuredJsonFactory
-