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.
|
static OperationMetadataAttribute<Boolean> |
GENERATES_BODY
Used by operations that do not serialize the input, e.g., when the input is not defined in the model.
|
static OperationMetadataAttribute<Map<String,String>> |
HTTP_EXTRA_HEADERS
Attribute for a protocol to configure extra headers for the operation.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAwsJsonProtocolFactory(BaseAwsJsonProtocolFactory.Builder<?> builder) |
public static final OperationMetadataAttribute<Boolean> GENERATES_BODY
public static final OperationMetadataAttribute<Map<String,String>> HTTP_EXTRA_HEADERS
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).@Deprecated public final HttpResponseHandler<AwsServiceException> createErrorResponseHandler(JsonOperationMetadata errorResponseMetadata)
createErrorResponseHandler(JsonOperationMetadata, Function), which allows the creation
of an error unmarshaller that uses a mapping function to map from error code to the associated ExceptionMetadata.public final HttpResponseHandler<AwsServiceException> createErrorResponseHandler(JsonOperationMetadata errorResponseMetadata, Function<String,Optional<ExceptionMetadata>> exceptionMetadataSupplier)
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 © 2026. All rights reserved.