public class CompositeRouteLocator extends Object implements RefreshableRouteLocator
| Constructor and Description |
|---|
CompositeRouteLocator(Collection<? extends RouteLocator> routeLocators) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getIgnoredPaths()
Ignored route paths (or patterns), if any.
|
Route |
getMatchingRoute(String path)
Maps a path to an actual route with full metadata.
|
List<Route> |
getRoutes()
A map of route path (pattern) to location (e.g.
|
void |
refresh() |
public CompositeRouteLocator(Collection<? extends RouteLocator> routeLocators)
public Collection<String> getIgnoredPaths()
RouteLocatorgetIgnoredPaths in interface RouteLocatorCollection of ignored pathspublic List<Route> getRoutes()
RouteLocatorgetRoutes in interface RouteLocatorList of routespublic Route getMatchingRoute(String path)
RouteLocatorgetMatchingRoute in interface RouteLocatorpath - used to match the RouteRoute based on the provided pathpublic void refresh()
refresh in interface RefreshableRouteLocatorCopyright © 2020 Pivotal Software, Inc.. All rights reserved.