Class HttpPipelineProvider

java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider

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

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • 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