Skip to content

Commit 01abd52

Browse files
committed
Merge branch '6.0.x'
2 parents f91fae5 + cfb3a45 commit 01abd52

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/ExchangeFilterFunction.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,6 +24,7 @@
2424

2525
/**
2626
* Represents a function that filters an {@linkplain ExchangeFunction exchange function}.
27+
*
2728
* <p>The filter is executed when a {@code Subscriber} subscribes to the
2829
* {@code Publisher} returned by the {@code WebClient}.
2930
*
@@ -35,15 +36,13 @@ public interface ExchangeFilterFunction {
3536

3637
/**
3738
* Apply this filter to the given request and exchange function.
38-
* <p>The given {@linkplain ExchangeFunction} represents the next entity
39-
* in the chain, to be invoked via
40-
* {@linkplain ExchangeFunction#exchange(ClientRequest) invoked} in order to
41-
* proceed with the exchange, or not invoked to shortcut the chain.
42-
*
39+
* <p>The given {@link ExchangeFunction} represents the next entity in the
40+
* chain, to be invoked via {@link ExchangeFunction#exchange} in order to
41+
* proceed with the exchange, or not invoked to short-circuit the chain.
4342
* <p><strong>Note:</strong> When a filter handles the response after the
44-
* call to {@link ExchangeFunction#exchange}, extra care must be taken to
45-
* always consume its content or otherwise propagate it downstream for
46-
* further handling, for example by the {@link WebClient}. Please, see the
43+
* call to {@code ExchangeFunction.exchange(...)}, extra care must be taken
44+
* to always consume its content or otherwise propagate it downstream for
45+
* further handling, for example by the {@link WebClient}. Please see the
4746
* reference documentation for more details on this.
4847
* @param request the current request
4948
* @param next the next exchange function in the chain
@@ -52,8 +51,8 @@ public interface ExchangeFilterFunction {
5251
Mono<ClientResponse> filter(ClientRequest request, ExchangeFunction next);
5352

5453
/**
55-
* Return a composed filter function that first applies this filter, and
56-
* then applies the given {@code "after"} filter.
54+
* Return a composed filter function that first applies this filter and
55+
* then applies the given {@code afterFilter}.
5756
* @param afterFilter the filter to apply after this filter
5857
* @return the composed filter
5958
*/

0 commit comments

Comments
 (0)