Class ReactorProxyHttpClientFactory

java.lang.Object
io.micronaut.reactor.http.client.proxy.ReactorProxyHttpClientFactory

@Factory public class ReactorProxyHttpClientFactory extends Object
Factory for creating a ReactorProxyHttpClient.
Since:
2.1.0
Author:
James Kleeh
  • Constructor Details

    • ReactorProxyHttpClientFactory

      public ReactorProxyHttpClientFactory(io.micronaut.http.client.ProxyHttpClientRegistry<?> clientRegistry)
      Default constructor.
      Parameters:
      clientRegistry - The client registry
  • Method Details

    • proxyHttpClient

      @Bean @Secondary protected ReactorProxyHttpClient proxyHttpClient(@Nullable @Nullable io.micronaut.inject.InjectionPoint<?> injectionPoint, @Parameter @Nullable @Nullable io.micronaut.http.client.LoadBalancer loadBalancer, @Parameter @Nullable @Nullable io.micronaut.http.client.HttpClientConfiguration configuration, io.micronaut.context.BeanContext beanContext)
      Injects a ReactorProxyHttpClient client at the given injection point.
      Parameters:
      injectionPoint - The injection point
      loadBalancer - The load balancer to use (Optional)
      configuration - The configuration (Optional)
      beanContext - The bean context to use
      Returns:
      The Proxy HTTP Client