public interface RouteRepository
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(java.lang.String urlPattern,
Route route)
Adds a route for the given url pattern.
|
java.util.Set<java.lang.String> |
getCollections(java.lang.String parentUri)
Returns a set with collections (routes) contained in the
given parent.
|
Route |
getRoute(java.lang.String url)
Returns the route which is foreseen
for the given url.
|
java.util.Map<java.lang.String,Route> |
getRoutes()
Returns a copy of all routes.
|
void |
removeRoute(java.lang.String urlPattern)
Removes the route for the url pattern.
|
void addRoute(java.lang.String urlPattern,
Route route)
urlPattern - - is used as a key.route - routevoid removeRoute(java.lang.String urlPattern)
urlPattern - urlPatternRoute getRoute(java.lang.String url)
url - urljava.util.Map<java.lang.String,Route> getRoutes()
java.util.Set<java.lang.String> getCollections(java.lang.String parentUri)
parentUri - the parent of which the routes should be listed