Class AdaptCachedBodyGlobalFilter
java.lang.Object
org.springframework.cloud.gateway.filter.AdaptCachedBodyGlobalFilter
- All Implemented Interfaces:
EventListener,GlobalFilter,org.springframework.context.ApplicationListener<EnableBodyCachingEvent>,org.springframework.core.Ordered
public class AdaptCachedBodyGlobalFilter
extends Object
implements GlobalFilter, org.springframework.core.Ordered, org.springframework.context.ApplicationListener<EnableBodyCachingEvent>
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain) Process the Web request and (optionally) delegate to the nextGatewayFilterthrough the givenGatewayFilterChain.intgetOrder()void
-
Constructor Details
-
AdaptCachedBodyGlobalFilter
public AdaptCachedBodyGlobalFilter()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<EnableBodyCachingEvent>
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain) Description copied from interface:GlobalFilterProcess the Web request and (optionally) delegate to the nextGatewayFilterthrough the givenGatewayFilterChain.- Specified by:
filterin interfaceGlobalFilter- Parameters:
exchange- the current server exchangechain- 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:
getOrderin interfaceorg.springframework.core.Ordered
-