public class JettyClientHttpConnector extends Object implements ClientHttpConnector
ClientHttpConnector for the Jetty Reactive Streams HttpClient.| Constructor and Description | 
|---|
| JettyClientHttpConnector()Default constructor that creates a new instance of  HttpClient. | 
| JettyClientHttpConnector(org.eclipse.jetty.client.HttpClient httpClient)Constructor with an initialized  HttpClient. | 
| JettyClientHttpConnector(org.eclipse.jetty.client.HttpClient httpClient,
                        JettyResourceFactory resourceFactory)Constructor with an initialized  HttpClientand configures it
 with the givenJettyResourceFactory. | 
| JettyClientHttpConnector(JettyResourceFactory resourceFactory,
                        Consumer<org.eclipse.jetty.client.HttpClient> customizer)Deprecated. 
 as of 5.2, in favor of
  JettyClientHttpConnector(HttpClient, JettyResourceFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Mono<ClientHttpResponse> | connect(HttpMethod method,
       URI uri,
       Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)Connect to the origin server using the given  HttpMethodandURIand apply the givenrequestCallbackwhen the HTTP
 request of the underlying API can be initialized and written to. | 
| void | setBufferFactory(DataBufferFactory bufferFactory)Set the buffer factory to use. | 
public JettyClientHttpConnector()
HttpClient.public JettyClientHttpConnector(org.eclipse.jetty.client.HttpClient httpClient)
HttpClient.public JettyClientHttpConnector(org.eclipse.jetty.client.HttpClient httpClient,
                                @Nullable
                                JettyResourceFactory resourceFactory)
HttpClient and configures it
 with the given JettyResourceFactory.httpClient - the HttpClient to useresourceFactory - the JettyResourceFactory to use@Deprecated public JettyClientHttpConnector(JettyResourceFactory resourceFactory, @Nullable Consumer<org.eclipse.jetty.client.HttpClient> customizer)
JettyClientHttpConnector(HttpClient, JettyResourceFactory)JettyResourceFactory that will manage shared resources.resourceFactory - the JettyResourceFactory to usecustomizer - the lambda used to customize the HttpClientpublic void setBufferFactory(DataBufferFactory bufferFactory)
public reactor.core.publisher.Mono<ClientHttpResponse> connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback)
ClientHttpConnectorHttpMethod and
 URI and apply the given requestCallback when the HTTP
 request of the underlying API can be initialized and written to.connect in interface ClientHttpConnectormethod - the HTTP request methoduri - the HTTP request URIrequestCallback - a function that prepares and writes to the request,
 returning a publisher that signals when it's done writing.
 Implementations can return a Mono<Void> by calling
 ReactiveHttpOutputMessage.writeWith(org.reactivestreams.Publisher<? extends org.springframework.core.io.buffer.DataBuffer>) or ReactiveHttpOutputMessage.setComplete().ClientHttpResponse