All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.cosmos.encryption.implementation.CosmosResponseFactory Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.azure.cosmos.encryption.implementation;

import com.azure.cosmos.CosmosItemSerializer;
import com.azure.cosmos.implementation.ImplementationBridgeHelpers;
import com.azure.cosmos.implementation.ImplementationBridgeHelpers.CosmosItemResponseHelper.CosmosItemResponseBuilderAccessor;
import com.azure.cosmos.models.CosmosItemResponse;

public class CosmosResponseFactory {
    CosmosItemResponseBuilderAccessor cosmosItemResponseBuilderAccessor;

    public CosmosResponseFactory() {
        cosmosItemResponseBuilderAccessor =
            ImplementationBridgeHelpers.CosmosItemResponseHelper.getCosmosItemResponseBuilderAccessor();
    }

    public  CosmosItemResponse createItemResponse(CosmosItemResponse responseMessage,
                                                        Class classType,
                                                        CosmosItemSerializer effectiveItemSerializer) {
        return cosmosItemResponseBuilderAccessor.createCosmosItemResponse(
            responseMessage,
            classType,
            effectiveItemSerializer);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy