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 protected
BaseAwsStructuredJsonFactory(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StructuredJsonGenerator
createWriter(String contentType)
Returns theStructuredJsonGenerator
to be used for marshalling the request.protected abstract StructuredJsonGenerator
createWriter(software.amazon.awssdk.thirdparty.jackson.core.JsonFactory jsonFactory, String contentType)
ErrorCodeParser
getErrorCodeParser(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:StructuredJsonFactory
Returns theStructuredJsonGenerator
to be used for marshalling the request.- Specified by:
createWriter
in 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:
getErrorCodeParser
in interfaceStructuredJsonFactory
-
-