@ThreadSafe public final class AwsJsonProtocolFactory extends BaseJsonProtocolFactory<AwsRequest,AwsServiceException>
Constructor and Description |
---|
AwsJsonProtocolFactory(JsonClientMetadata metadata,
AwsJsonProtocolMetadata protocolMetadata) |
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AwsServiceException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
<T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
createProtocolMarshaller
public AwsJsonProtocolFactory(JsonClientMetadata metadata, AwsJsonProtocolMetadata protocolMetadata)
public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
createResponseHandler
in class BaseJsonProtocolFactory<AwsRequest,AwsServiceException>
operationMetadata
- Additional context information about an operation to create the appropriate response handler.public HttpResponseHandler<AwsServiceException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
createErrorResponseHandler
in class BaseJsonProtocolFactory<AwsRequest,AwsServiceException>
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.