Class CompositeRouteLocator
java.lang.Object
org.springframework.cloud.gateway.route.CompositeRouteLocator
- All Implemented Interfaces:
RouteLocator
- Author:
- Spencer Gibb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<Route> reactor.core.publisher.Flux<Route> getRoutesByMetadata(Map<String, Object> metadata) Gets routes whoseRoute.getId()matches with any of the ids passed by parameters.
-
Constructor Details
-
CompositeRouteLocator
-
-
Method Details
-
getRoutes
- Specified by:
getRoutesin interfaceRouteLocator
-
getRoutesByMetadata
Description copied from interface:RouteLocatorGets routes whoseRoute.getId()matches with any of the ids passed by parameters. If an ID cannot be found, it will not return a route for that ID.- Specified by:
getRoutesByMetadatain interfaceRouteLocator
-