Class RouteToRequestUrlFilter
- java.lang.Object
-
- org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter
-
- All Implemented Interfaces:
GlobalFilter
,org.springframework.core.Ordered
public class RouteToRequestUrlFilter extends Object implements GlobalFilter, org.springframework.core.Ordered
- Author:
- Spencer Gibb
-
-
Field Summary
Fields Modifier and Type Field Description static int
ROUTE_TO_URL_FILTER_ORDER
Order of Route to URL.
-
Constructor Summary
Constructors Constructor Description RouteToRequestUrlFilter()
-
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 nextGatewayFilter
through the givenGatewayFilterChain
.int
getOrder()
-
-
-
Field Detail
-
ROUTE_TO_URL_FILTER_ORDER
public static final int ROUTE_TO_URL_FILTER_ORDER
Order of Route to URL.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
-
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 nextGatewayFilter
through the givenGatewayFilterChain
.- Specified by:
filter
in 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
-
-