@ThreadSafe public class SdkRpcV2CborProtocolFactory extends Object
Constructor and Description |
---|
SdkRpcV2CborProtocolFactory(RpcV2CborClientMetadata metadata) |
Modifier and Type | Method and Description |
---|---|
HttpResponseHandler<AmazonServiceException> |
createErrorResponseHandler(RpcV2CborErrorResponseMetadata errorResponsMetadata)
Creates a response handler for handling a error response (non 2xx response).
|
StructuredRpcV2CborGenerator |
createGenerator() |
<T> ProtocolRequestMarshaller<T> |
createProtocolMarshaller(OperationInfo operationInfo,
T origRequest) |
<T> HttpResponseHandler<AmazonWebServiceResponse<T>> |
createResponseHandler(RpcV2CborOperationMetadata operationMetadata,
Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successful response.
|
String |
getContentType() |
public SdkRpcV2CborProtocolFactory(RpcV2CborClientMetadata metadata)
public StructuredRpcV2CborGenerator createGenerator()
public String getContentType()
public <T> ProtocolRequestMarshaller<T> createProtocolMarshaller(OperationInfo operationInfo, T origRequest)
public <T> HttpResponseHandler<AmazonWebServiceResponse<T>> createResponseHandler(RpcV2CborOperationMetadata operationMetadata, Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the appropriate response handler.public HttpResponseHandler<AmazonServiceException> createErrorResponseHandler(RpcV2CborErrorResponseMetadata errorResponsMetadata)