Class ReactorProxyHttpClientFactory
java.lang.Object
io.micronaut.reactor.http.client.proxy.ReactorProxyHttpClientFactory
Factory for creating a
ReactorProxyHttpClient
.- Since:
- 2.1.0
- Author:
- James Kleeh
-
Constructor Summary
ConstructorDescriptionReactorProxyHttpClientFactory
(io.micronaut.http.client.ProxyHttpClientRegistry<?> clientRegistry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ReactorProxyHttpClient
proxyHttpClient
(@Nullable io.micronaut.inject.InjectionPoint<?> injectionPoint, @Nullable io.micronaut.http.client.LoadBalancer loadBalancer, @Nullable io.micronaut.http.client.HttpClientConfiguration configuration, io.micronaut.context.BeanContext beanContext) Injects aReactorProxyHttpClient
client at the given injection point.
-
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 aReactorProxyHttpClient
client at the given injection point.- Parameters:
injectionPoint
- The injection pointloadBalancer
- The load balancer to use (Optional)configuration
- The configuration (Optional)beanContext
- The bean context to use- Returns:
- The Proxy HTTP Client
-