Class HelidonConnectorProvider

All Implemented Interfaces:

public class HelidonConnectorProvider extends Object implements ConnectorProvider
A Jersey ConnectorProvider that uses a WebClient instance to executed HTTP requests on behalf of a Jakarta REST Client.

An instance of this class can be specified during the creation of a Client using the method ClientConfig.connectorProvider(org.glassfish.jersey.client.spi.ConnectorProvider). It is recommended to use the static method create() for obtain an instance of this class.

Configuration of a connector is driven by properties set on a Client instance, including possibly a config tree. There is a combination of Jersey and Helidon properties that can be specified for that purpose. Jersey properties are defined in class ClientProperties and Helidon properties are defined in HelidonProperties.

Only the following properties from ClientProperties are supported:

If a ClientResponse is obtained and an entity is not read from the response then InboundMessageContext.close() MUST be called after processing the response to release connection-based resources.

Client operations are thread safe, the HTTP connection may be shared between different threads.

If a response entity is obtained that is an instance of Closeable then the instance MUST be closed after processing the entity to release connection-based resources.