public static class JettyHttpClientSupplier extends Object
JettyConnector
.
Not every possible configuration option is covered by the Jetty Connector and this supplier offers a way to provide
an HttpClient that has configured the options not covered by the Jetty Connector.
Typical usage:
HttpClient httpClient = ...
ClientConfig config = new ClientConfig();
config.connectorProvider(new JettyConnectorProvider());
config.register(new JettyHttpClientSupplier(httpClient));
Client client = ClientBuilder.newClient(config);
The HttpClient
is configured as if it was created by JettyConnector
the usual way.
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.