public abstract class SdkStructuredRpcV2CborFactoryImpl extends Object implements SdkStructuredRpcV2CborFactory
SdkStructuredCborFactory.SDK_CBOR_FACTORY.| Constructor and Description |
|---|
SdkStructuredRpcV2CborFactoryImpl(com.fasterxml.jackson.dataformat.cbor.CBORFactory cborFactory,
Map<Class<?>,Unmarshaller<?,RpcV2CborUnmarshallerContext>> unmarshallers,
Map<RpcV2CborUnmarshallerContext.UnmarshallerType,Unmarshaller<?,RpcV2CborUnmarshallerContext>> customTypeUnmarshallers) |
| Modifier and Type | Method and Description |
|---|---|
RpcV2CborErrorResponseHandler |
createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers,
String customErrorCodeFieldName)
Returns the error response handler for handling a error response.
|
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. |
public SdkStructuredRpcV2CborFactoryImpl(com.fasterxml.jackson.dataformat.cbor.CBORFactory cborFactory,
Map<Class<?>,Unmarshaller<?,RpcV2CborUnmarshallerContext>> unmarshallers,
Map<RpcV2CborUnmarshallerContext.UnmarshallerType,Unmarshaller<?,RpcV2CborUnmarshallerContext>> customTypeUnmarshallers)
public StructuredRpcV2CborGenerator createWriter(String contentType)
SdkStructuredRpcV2CborFactoryStructuredRpcV2CborGenerator to be used for marshalling the request.createWriter in interface SdkStructuredRpcV2CborFactorycontentType - Content type to send for requests.public <T> RpcV2CborResponseHandler<T> createResponseHandler(RpcV2CborOperationMetadata operationMetadata, Unmarshaller<T,RpcV2CborUnmarshallerContext> responseUnmarshaller)
SdkStructuredRpcV2CborFactorycreateResponseHandler in interface SdkStructuredRpcV2CborFactoryoperationMetadata - Additional context information about an operation to create the
appropriate response handler.public RpcV2CborErrorResponseHandler createErrorResponseHandler(List<JsonErrorUnmarshaller> errorUnmarshallers, String customErrorCodeFieldName)
SdkStructuredRpcV2CborFactorycreateErrorResponseHandler in interface SdkStructuredRpcV2CborFactoryerrorUnmarshallers - Response unmarshallers to unamrshall the error responses.public RpcV2CborErrorResponseHandler createErrorResponseHandler(RpcV2CborErrorResponseMetadata rpcv2cborErrorResponseMetadata, List<JsonErrorUnmarshaller> errorUnmarshallers)
createErrorResponseHandler in interface SdkStructuredRpcV2CborFactory