Class ProviderRegistrationPolicy
java.lang.Object
com.azure.resourcemanager.resources.fluentcore.policy.ProviderRegistrationPolicy
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public class ProviderRegistrationPolicy
extends Object
implements com.azure.core.http.policy.HttpPipelinePolicy
A Http Pipeline Policy for automatic provider registration in Azure.
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize a provider registration policy to automatically register the provider.ProviderRegistrationPolicy(Providers providers) Initialize a provider registration policy to automatically register the provider.ProviderRegistrationPolicy(ResourceManager resourceManager) Initialize a provider registration policy to automatically register the provider. -
Method Summary
Modifier and TypeMethodDescriptionMono<com.azure.core.http.HttpResponse>process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) voidsetProviders(Providers providers) Sets the providers endpoint after initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy
getPipelinePosition, processSync
-
Constructor Details
-
ProviderRegistrationPolicy
public ProviderRegistrationPolicy()Initialize a provider registration policy to automatically register the provider. -
ProviderRegistrationPolicy
Initialize a provider registration policy to automatically register the provider.- Parameters:
resourceManager- the Resource Manager that provider providers endpoint
-
ProviderRegistrationPolicy
Initialize a provider registration policy to automatically register the provider.- Parameters:
providers- the providers endpoint
-
-
Method Details
-
setProviders
Sets the providers endpoint after initialized- Parameters:
providers- the providers endpoint
-
getProviders
- Returns:
- the providers endpoint contained in policy
-
process
public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) - Specified by:
processin interfacecom.azure.core.http.policy.HttpPipelinePolicy
-