@ThreadSafe public class SdkJsonProtocolFactory extends BaseJsonProtocolFactory<SdkRequest,SdkServiceException>
jsonClientMetadata
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<SdkServiceException> |
createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
protected StructuredJsonGenerator |
createGenerator(OperationInfo operationInfo) |
<T> JsonResponseHandler<T> |
createResponseHandler(JsonOperationMetadata operationMetadata,
Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
protected String |
getContentType() |
createProtocolMarshaller, isCborEnabled, isIonBinaryEnabled, isIonEnabled
protected StructuredJsonGenerator createGenerator(OperationInfo operationInfo)
createGenerator
in class BaseJsonProtocolFactory<SdkRequest,SdkServiceException>
protected String getContentType()
getContentType
in class BaseJsonProtocolFactory<SdkRequest,SdkServiceException>
public <T> JsonResponseHandler<T> createResponseHandler(JsonOperationMetadata operationMetadata, Unmarshaller<T,JsonUnmarshallerContext> responseUnmarshaller)
createResponseHandler
in class BaseJsonProtocolFactory<SdkRequest,SdkServiceException>
operationMetadata
- Additional context information about an operation to create the appropriate response handler.public HttpResponseHandler<SdkServiceException> createErrorResponseHandler(JsonErrorResponseMetadata errorResponseMetadata)
createErrorResponseHandler
in class BaseJsonProtocolFactory<SdkRequest,SdkServiceException>
Copyright © 2018. All rights reserved.