类 WebClientUtils

java.lang.Object
cn.taketoday.web.reactive.function.client.WebClientUtils

abstract class WebClientUtils extends Object
Internal methods shared between DefaultWebClient and DefaultClientResponse.
从以下版本开始:
4.0
作者:
Arjen Poutsma, Harry Yang
  • 字段详细资料

    • WRAP_EXCEPTION_PREDICATE

      public static final Predicate<? super Throwable> WRAP_EXCEPTION_PREDICATE
      Predicate that returns true if an exception should be wrapped.
  • 构造器详细资料

    • WebClientUtils

      WebClientUtils()
  • 方法详细资料

    • mapToEntity

      public static <T> reactor.core.publisher.Mono<ResponseEntity<T>> mapToEntity(ClientResponse response, reactor.core.publisher.Mono<T> bodyMono)
      Map the given response to a single value ResponseEntity<T>.
    • mapToEntityList

      public static <T> reactor.core.publisher.Mono<ResponseEntity<List<T>>> mapToEntityList(ClientResponse response, org.reactivestreams.Publisher<T> body)
      Map the given response to a ResponseEntity<List<T>>.