Class OrderedGatewayFilter
- java.lang.Object
-
- org.springframework.cloud.gateway.filter.OrderedGatewayFilter
-
- All Implemented Interfaces:
GatewayFilter
,ShortcutConfigurable
,org.springframework.core.Ordered
public class OrderedGatewayFilter extends Object implements GatewayFilter, org.springframework.core.Ordered
- Author:
- Spencer Gibb
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType
-
-
Field Summary
-
Fields inherited from interface org.springframework.cloud.gateway.filter.GatewayFilter
NAME_KEY, VALUE_KEY
-
-
Constructor Summary
Constructors Constructor Description OrderedGatewayFilter(GatewayFilter delegate, int order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>
filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenGatewayFilterChain
.GatewayFilter
getDelegate()
int
getOrder()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
-
-
-
Constructor Detail
-
OrderedGatewayFilter
public OrderedGatewayFilter(GatewayFilter delegate, int order)
-
-
Method Detail
-
getDelegate
public GatewayFilter getDelegate()
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, GatewayFilterChain chain)
Description copied from interface:GatewayFilter
Process the Web request and (optionally) delegate to the nextWebFilter
through the givenGatewayFilterChain
.- Specified by:
filter
in interfaceGatewayFilter
- 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:
getOrder
in interfaceorg.springframework.core.Ordered
-
-