Class SdkStructuredJsonFactoryImpl

java.lang.Object
com.amazonaws.protocol.json.SdkStructuredJsonFactoryImpl

public abstract class SdkStructuredJsonFactoryImpl extends Object
Generic implementation of a structured JSON factory that is pluggable for different variants of JSON. See SdkStructuredPlainJsonFactory.SDK_JSON_FACTORY and SdkStructuredCborFactory.SDK_CBOR_FACTORY.
  • Constructor Details

    • SdkStructuredJsonFactoryImpl

      public SdkStructuredJsonFactoryImpl(String contentTypePrefix, com.fasterxml.jackson.core.JsonFactory jsonFactory, Map<Class<?>, com.amazonaws.transform.Unmarshaller<?, com.amazonaws.transform.JsonUnmarshallerContext>> unmarshallers)
  • Method Details

    • createWriter

      public StructuredJsonGenerator createWriter(String protocolVersion)
    • createWriter

      protected abstract StructuredJsonGenerator createWriter(com.fasterxml.jackson.core.JsonFactory jsonFactory, String contentType)
    • createResponseHandler

      public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, com.amazonaws.transform.Unmarshaller<T, com.amazonaws.transform.JsonUnmarshallerContext> responseUnmarshaller)
    • createErrorResponseHandler

      public JsonErrorResponseHandler createErrorResponseHandler(List<com.amazonaws.transform.JsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)