Class BaseAppConfigurationPolicy

java.lang.Object
com.azure.spring.cloud.config.pipline.policies.BaseAppConfigurationPolicy
All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy

public final class BaseAppConfigurationPolicy extends Object implements com.azure.core.http.policy.HttpPipelinePolicy
HttpPipelinePolicy for connecting to Azure App Configuration.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Format of User Agent
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseAppConfigurationPolicy(Boolean isDev, Boolean isKeyVaultConfigured, Integer replicaCount)
    App Configuration Http Pipeline Policy
  • Method Summary

    Modifier and Type
    Method
    Description
    Mono<com.azure.core.http.HttpResponse>
    process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
     
    static void
    setWatchRequests(Boolean watchRequests)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy

    getPipelinePosition, processSync
  • Field Details

    • USER_AGENT

      public static final String USER_AGENT
      Format of User Agent
  • Constructor Details

    • BaseAppConfigurationPolicy

      public BaseAppConfigurationPolicy(Boolean isDev, Boolean isKeyVaultConfigured, Integer replicaCount)
      App Configuration Http Pipeline Policy
      Parameters:
      isDev - is using dev profile
      isKeyVaultConfigured - is key vault configured
      replicaCount - number of replicas being used. Should equal the number of endpoints minus one.
  • Method Details

    • process

      public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next)
      Specified by:
      process in interface com.azure.core.http.policy.HttpPipelinePolicy
    • setWatchRequests

      public static void setWatchRequests(Boolean watchRequests)
      Parameters:
      watchRequests - the watchRequests to set