Class 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 Detail

      • SdkStructuredJsonFactoryImpl

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

      • 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)