public class GenericRouteMatcher<T> extends Object
| Constructor and Description |
|---|
GenericRouteMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(GenericRouteSpec<T> routeSpec) |
void |
add(String httpMethod,
String path,
T value) |
List<GenericRouteSpec<T>> |
getAllRoutes() |
GenericMatchedRoute<T> |
match(HTTPMethod httpMethod,
String path) |
void |
setDefault(T defaultVal) |
public List<GenericRouteSpec<T>> getAllRoutes()
public void add(GenericRouteSpec<T> routeSpec)
public void setDefault(T defaultVal)
public GenericMatchedRoute<T> match(HTTPMethod httpMethod, String path)
Copyright © 2017. All rights reserved.