Interface GatewayFilter
- All Superinterfaces:
ShortcutConfigurable
- All Known Implementing Classes:
ModifyResponseBodyGatewayFilterFactory.ModifyResponseGatewayFilter, OrderedGatewayFilter, ResponseCacheGatewayFilter
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
Fields -
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 nextWebFilterthrough the givenGatewayFilterChain.Methods inherited from interface ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
Field Details
-
NAME_KEY
-
VALUE_KEY
-
-
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 nextWebFilterthrough the givenGatewayFilterChain.- 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
-