Interface ClientHttpEngineFactory
- All Known Implementing Classes:
JettyHttpClientEngineFactory
,VertxClientHttpEngineFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for creating HTTP engines for the Jakarta REST Client
implementation.
Implementations are loaded via a ServiceLoader
and may be annotated with
@Priority
to indicate ranking.
- Author:
- James R. Perkins
-
Method Summary
Modifier and TypeMethodDescriptionasyncHttpClientEngine
(ClientBuilderConfiguration configuration) Creates, or retrieves, aAsyncClientHttpEngine
based on the configuration.default ClientHttpEngine
httpClientEngine
(ClientBuilderConfiguration configuration) Creates, or retrieves, aClientHttpEngine
based on the configuration.
-
Method Details
-
httpClientEngine
Creates, or retrieves, aClientHttpEngine
based on the configuration.- Parameters:
configuration
- theClientBuilder
configuration to use- Returns:
- the client HTTP engine, should never be
null
-
asyncHttpClientEngine
Creates, or retrieves, aAsyncClientHttpEngine
based on the configuration.- Parameters:
configuration
- theClientBuilder
configuration to use- Returns:
- the client HTTP engine, should never be
null
-