public abstract class BaseAwsJsonProtocolFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseAwsJsonProtocolFactory.Builder<SubclassT extends BaseAwsJsonProtocolFactory.Builder>
Builder for
AwsJsonProtocolFactory. |
| Modifier and Type | Field and Description |
|---|---|
protected static JsonContentTypeResolver |
AWS_JSON
Content type resolver implementation for plain text AWS_JSON services.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAwsJsonProtocolFactory(BaseAwsJsonProtocolFactory.Builder<?> builder) |
protected static final JsonContentTypeResolver AWS_JSON
protected BaseAwsJsonProtocolFactory(BaseAwsJsonProtocolFactory.Builder<?> builder)
public final <T extends SdkPojo> HttpResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Supplier<SdkPojo> pojoSupplier)
JsonOperationMetadata and a supplier of the POJO response
type.T - Type being unmarshalled.operationMetadata - Metadata about operation being unmarshalled.pojoSupplier - Supplier of the POJO response type.public final <T extends SdkPojo> HttpResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Function<SdkHttpFullResponse,SdkPojo> pojoSupplier)
JsonOperationMetadata and a supplier of the POJO response
type.T - Type being unmarshalled.operationMetadata - Metadata about operation being unmarshalled.pojoSupplier - Supplier of the POJO response type. Has access to the HTTP response, primarily for polymorphic
deserialization as seen in event stream (i.e. unmarshalled event depends on ':event-type' header).public final HttpResponseHandler<AwsServiceException> createErrorResponseHandler(JsonOperationMetadata errorResponseMetadata)
public final String getContentType()
protected JsonContentTypeResolver getContentTypeResolver()
protected StructuredJsonFactory getSdkFactory()
StructuredJsonFactory to use in creating handlers.protected Map<MarshallLocation,TimestampFormatTrait.Format> getDefaultTimestampFormats()
public final ProtocolMarshaller<SdkHttpFullRequest> createProtocolMarshaller(OperationInfo operationInfo)
Copyright © 2022. All rights reserved.