public interface SdkStructuredRpcV2CborFactory
SdkStructuredCborFactory
Modifier and Type | Method and Description |
---|---|
RpcV2CborErrorResponseHandler |
createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers,
String customErrorCodeFieldName)
Deprecated.
|
RpcV2CborErrorResponseHandler |
createErrorResponseHandler(RpcV2CborErrorResponseMetadata RpcV2CborErrorResponseMetadata,
List<JsonErrorUnmarshaller> errorUnmarshallers) |
<T> RpcV2CborResponseHandler<T> |
createResponseHandler(RpcV2CborOperationMetadata operationMetadata,
Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller)
Returns the response handler to be used for handling a successfull response.
|
StructuredRpcV2CborGenerator |
createWriter(String contentType)
Returns the
StructuredRpcV2CborGenerator to be used for marshalling the request. |
StructuredRpcV2CborGenerator createWriter(String contentType)
StructuredRpcV2CborGenerator
to be used for marshalling the request.contentType
- Content type to send for requests.<T> RpcV2CborResponseHandler<T> createResponseHandler(RpcV2CborOperationMetadata operationMetadata, Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller)
operationMetadata
- Additional context information about an operation to create the
appropriate response handler.@Deprecated RpcV2CborErrorResponseHandler createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)
createErrorResponseHandler(RpcV2CborErrorResponseMetadata, List)
insteaderrorUnmarshallers
- Response unmarshallers to unamrshall the error responses.RpcV2CborErrorResponseHandler createErrorResponseHandler(RpcV2CborErrorResponseMetadata RpcV2CborErrorResponseMetadata, List<JsonErrorUnmarshaller> errorUnmarshallers)