Browse Source

Merge branch '3.1.x'

pull/2855/head
spencergibb 2 years ago
parent
commit
9d60f16586
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 5
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/GatewayFilterChain.java
  2. 7
      spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/GlobalFilter.java

5
spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/GatewayFilterChain.java

@ -22,15 +22,16 @@ import org.springframework.web.server.ServerWebExchange; @@ -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
*/

7
spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/filter/GlobalFilter.java

@ -21,17 +21,20 @@ import reactor.core.publisher.Mono; @@ -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

Loading…
Cancel
Save