Class HttpPipelineProvider
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.utils.HttpPipelineProvider
This class provides common patterns on building
HttpPipeline.-
Method Summary
Modifier and TypeMethodDescriptionstatic com.azure.core.http.HttpPipelinebuildHttpPipeline(com.azure.core.credential.TokenCredential credential, com.azure.core.management.profile.AzureProfile profile) Creates http pipeline with token credential and profilestatic com.azure.core.http.HttpPipelinebuildHttpPipeline(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 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 credentialprofile- 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 credentialprofile- the profilescopes- the credential scopeshttpLogOptions- the http log optionsconfiguration- the configuration valueretryPolicy- the retry policyadditionalPolicies- the additional policieshttpClient- the http client- Returns:
- the http pipeline
-