Share via


ProviderRegistrationInterceptor Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.utils.ProviderRegistrationInterceptor

Implements

okhttp3.Interceptor

public final class ProviderRegistrationInterceptor
implements okhttp3.Interceptor

An interceptor for automatic provider registration in Azure.

Constructor Summary

Constructor Description
ProviderRegistrationInterceptor(AzureTokenCredentials credentials)

Initialize a provider registration interceptor with a credential that's authorized to register the provider.

Method Summary

Modifier and Type Method and Description
okhttp3.Response intercept(Interceptor.Chain chain)

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ProviderRegistrationInterceptor

public ProviderRegistrationInterceptor(AzureTokenCredentials credentials)

Initialize a provider registration interceptor with a credential that's authorized to register the provider.

Parameters:

credentials - the credential for provider registration

Method Details

intercept

public Response intercept(Interceptor.Chain chain)

Parameters:

chain

Throws:

java.io.IOException

Applies to