Class HttpPipelineProvider


  • public final class HttpPipelineProvider
    extends Object
    This class provides common patterns on building HttpPipeline.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.azure.core.http.HttpPipeline buildHttpPipeline​(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile)
      Creates http pipeline with token credential and profile
      static com.azure.core.http.HttpPipeline buildHttpPipeline​(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile, String[] scopes, com.azure.core.http.policy.HttpLogOptions httpLogOptions, com.azure.core.util.Configuration configuration, com.azure.core.http.policy.RetryPolicy retryPolicy, List<com.azure.core.http.policy.HttpPipelinePolicy> additionalPolicies, com.azure.core.http.HttpClient httpClient)
      Creates http pipeline with token credential and profile
    • Method Detail

      • buildHttpPipeline

        public static com.azure.core.http.HttpPipeline buildHttpPipeline​(com.azure.core.credential.TokenCredential credential,
                                                                         com.azure.core.management.profile.AzureProfile profile)
        Creates http pipeline with token credential and profile
        Parameters:
        credential - the token credential
        profile - the profile
        Returns:
        the http pipeline
      • buildHttpPipeline

        public static com.azure.core.http.HttpPipeline buildHttpPipeline​(com.azure.core.credential.TokenCredential credential,
                                                                         com.azure.core.management.profile.AzureProfile profile,
                                                                         String[] scopes,
                                                                         com.azure.core.http.policy.HttpLogOptions httpLogOptions,
                                                                         com.azure.core.util.Configuration configuration,
                                                                         com.azure.core.http.policy.RetryPolicy retryPolicy,
                                                                         List<com.azure.core.http.policy.HttpPipelinePolicy> additionalPolicies,
                                                                         com.azure.core.http.HttpClient httpClient)
        Creates http pipeline with token credential and profile
        Parameters:
        credential - the token credential
        profile - the profile
        scopes - the credential scopes
        httpLogOptions - the http log options
        configuration - the configuration value
        retryPolicy - the retry policy
        additionalPolicies - the additional policies
        httpClient - the http client
        Returns:
        the http pipeline