Class JettyClientHttpConnector

  • java.lang.Object
    • org.springframework.http.client.reactive.JettyClientHttpConnector
  • All Implemented Interfaces:

    public class JettyClientHttpConnector
    extends java.lang.Object
    implements ClientHttpConnector
    Jetty ReactiveStreams HttpClient implementation of ClientHttpConnector. Implemented with buffer copy instead of optimized buffer wrapping because the latter hangs since Callback.succeeded() doesn't allow releasing the buffer and requesting more data at different times (required for Mono<DataBuffer> for example). See for more details.
    Sebastien Deleuze
    See Also:
    Jetty ReactiveStreams HttpClient
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      reactor.core.publisher.Mono<ClientHttpResponse> connect(HttpMethod method, uri, java.util.function.Function<? super ClientHttpRequest,reactor.core.publisher.Mono<java.lang.Void>> requestCallback)
      Connect to the origin server using the given HttpMethod and URI and apply the given requestCallback when the HTTP request of the underlying API can be initialized and written to.
      void setBufferFactory(DataBufferFactory bufferFactory) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait