Interface GatewayFilter

All Superinterfaces:
ShortcutConfigurable
All Known Implementing Classes:
ModifyResponseBodyGatewayFilterFactory.ModifyResponseGatewayFilter, OrderedGatewayFilter, ResponseCacheGatewayFilter

public interface GatewayFilter extends ShortcutConfigurable
Contract for interception-style, chained processing of Web requests that may be used to implement cross-cutting, application-agnostic requirements such as security, timeouts, and others. Specific to a Gateway Copied from WebFilter
Since:
5.0
Author:
Rossen Stoyanchev
  • Field Details

  • Method Details

    • filter

      reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
      Process the Web request and (optionally) delegate to the next WebFilter through the given GatewayFilterChain.
      Parameters:
      exchange - the current server exchange
      chain - provides a way to delegate to the next filter
      Returns:
      Mono<Void> to indicate when request processing is complete