Class GlobalLocalResponseCacheGatewayFilter

java.lang.Object
org.springframework.cloud.gateway.filter.factory.cache.GlobalLocalResponseCacheGatewayFilter
All Implemented Interfaces:
GlobalFilter, org.springframework.core.Ordered

public class GlobalLocalResponseCacheGatewayFilter extends Object implements GlobalFilter, org.springframework.core.Ordered
Caches responses for routes that don't have the LocalResponseCacheGatewayFilterFactory configured.
Author:
Ignacio Lozano, Marta Medio
  • Constructor Details

  • Method Details

    • filter

      public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
      Description copied from interface: GlobalFilter
      Process the Web request and (optionally) delegate to the next GatewayFilter through the given GatewayFilterChain.
      Specified by:
      filter in interface GlobalFilter
      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
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered