WIP: WebClient -- ExchangeFilterFunction.ofResponseProcessor() ersetzt
authorKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 19:42:52 +0000 (20:42 +0100)
committerKai Moritz <kai@jupl.de>
Thu, 21 Nov 2019 19:42:52 +0000 (20:42 +0100)
src/test/java/de/juplo/facebook/errors/GraphApiExchangeFilterFunctionIntegrationTest.java

index 8d21cc5..6304665 100644 (file)
@@ -132,7 +132,7 @@ public class GraphApiExchangeFilterFunctionIntegrationTest
 
   public static ExchangeFilterFunction errorHandlingFilter()
   {
-    return ExchangeFilterFunction.ofResponseProcessor(response ->
+    return (request, next) -> next.exchange(request).flatMap(response ->
     {
       if (response.statusCode() != null && (response.statusCode()
           .is5xxServerError() || response.statusCode().is4xxClientError()))