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 | Method and Description |
---|---|
HttpResponseHandler<AwsServiceException> |
createErrorResponseHandler(JsonOperationMetadata errorResponseMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
ProtocolMarshaller<SdkHttpFullRequest> |
createProtocolMarshaller(OperationInfo operationInfo) |
<T extends SdkPojo> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Function<SdkHttpFullResponse,SdkPojo> pojoSupplier)
Creates a new response handler with the given
JsonOperationMetadata and a supplier of the POJO response
type. |
<T extends SdkPojo> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Supplier<SdkPojo> pojoSupplier)
Creates a new response handler with the given
JsonOperationMetadata and a supplier of the POJO response
type. |
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 ProtocolMarshaller<SdkHttpFullRequest> createProtocolMarshaller(OperationInfo operationInfo)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.