T
- Reactive HTTP Clientpublic interface HttpClientRegistry<T extends HttpClient>
HttpClient
clients.Modifier and Type | Method and Description |
---|---|
void |
disposeClient(AnnotationMetadata annotationMetadata)
Dispose of the client defined by the given metadata.
|
T |
getClient(AnnotationMetadata annotationMetadata)
Return the client for the given annotation metadata.
|
T |
getClient(HttpVersion httpVersion,
String clientId,
String path)
Return the client for the client ID and path.
|
default T |
getDefaultClient() |
T |
resolveClient(InjectionPoint<?> injectionPoint,
LoadBalancer loadBalancer,
HttpClientConfiguration configuration,
BeanContext beanContext)
Resolves a
HttpClient for the given injection point. |
@NonNull T getClient(@NonNull AnnotationMetadata annotationMetadata)
annotationMetadata
- The annotation metadata.@NonNull T getClient(HttpVersion httpVersion, @NonNull String clientId, @Nullable String path)
httpVersion
- The HTTP versionclientId
- The client IDpath
- The path (Optional)@NonNull T resolveClient(@Nullable InjectionPoint<?> injectionPoint, @Nullable LoadBalancer loadBalancer, @Nullable HttpClientConfiguration configuration, @NonNull BeanContext beanContext)
HttpClient
for the given injection point.injectionPoint
- The injection pointloadBalancer
- The load balancer to use (Optional)configuration
- The configuration (Optional)beanContext
- The bean context to usevoid disposeClient(AnnotationMetadata annotationMetadata)
annotationMetadata
- The annotation metadatadefault T getDefaultClient()