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()
RouteLocator
getIgnoredPaths
in interface RouteLocator
public List<Route> getRoutes()
RouteLocator
getRoutes
in interface RouteLocator
public Route getMatchingRoute(String path)
RouteLocator
getMatchingRoute
in interface RouteLocator
public void refresh()
refresh
in interface RefreshableRouteLocator
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.