Class BaseAwsStructuredJsonFactory
- java.lang.Object
-
- software.amazon.awssdk.protocols.json.BaseAwsStructuredJsonFactory
-
- All Implemented Interfaces:
StructuredJsonFactory
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
Constructors Modifier Constructor Description protectedBaseAwsStructuredJsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StructuredJsonGeneratorcreateWriter(String contentType)Returns theStructuredJsonGeneratorto be used for marshalling the request.protected abstract StructuredJsonGeneratorcreateWriter(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory, String contentType)ErrorCodeParsergetErrorCodeParser(String customErrorCodeFieldName)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.protocols.json.StructuredJsonFactory
getJsonFactory
-
-
-
-
Method Detail
-
createWriter
public StructuredJsonGenerator createWriter(String contentType)
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
public ErrorCodeParser getErrorCodeParser(String customErrorCodeFieldName)
- Specified by:
getErrorCodeParserin interfaceStructuredJsonFactory
-
-