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