Merge branch '3.1.x'
This commit is contained in:
@@ -22,15 +22,16 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
import org.springframework.web.server.WebFilter;
|
||||
|
||||
/**
|
||||
* Contract to allow a {@link WebFilter} to delegate to the next in the chain.
|
||||
* Contract to allow a {@link GatewayFilter} to delegate to the next in the chain.
|
||||
*
|
||||
* Copied from framework WebFilterChain
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 5.0
|
||||
*/
|
||||
public interface GatewayFilterChain {
|
||||
|
||||
/**
|
||||
* Delegate to the next {@code WebFilter} in the chain.
|
||||
* Delegate to the next {@code GatewayFilter} in the chain.
|
||||
* @param exchange the current server exchange
|
||||
* @return {@code Mono<Void>} to indicate when request handling is complete
|
||||
*/
|
||||
|
||||
@@ -21,17 +21,20 @@ import reactor.core.publisher.Mono;
|
||||
import org.springframework.web.server.ServerWebExchange;
|
||||
|
||||
/**
|
||||
* Contract for interception-style, chained processing of Web requests that may be used to
|
||||
* Contract for interception-style, chained processing of gateway requests that may be used to
|
||||
* implement cross-cutting, application-agnostic requirements such as security, timeouts,
|
||||
* and others.
|
||||
*
|
||||
* Only applies to matched gateway routes.
|
||||
*
|
||||
* Copied from framework WebFilter
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 5.0
|
||||
*/
|
||||
public interface GlobalFilter {
|
||||
|
||||
/**
|
||||
* Process the Web request and (optionally) delegate to the next {@code WebFilter}
|
||||
* Process the Web request and (optionally) delegate to the next {@code GatewayFilter}
|
||||
* through the given {@link GatewayFilterChain}.
|
||||
* @param exchange the current server exchange
|
||||
* @param chain provides a way to delegate to the next filter
|
||||
|
||||
Reference in New Issue
Block a user