public class RouteMatcher extends Object
| Constructor and Description |
|---|
RouteMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String httpMethod,
String path,
Class<? extends RequestHandler> requestHandler) |
void |
add(String httpMethod,
String path,
javax.servlet.http.HttpServlet servlet) |
List<RouteSpec> |
getAllRoutes() |
MatchedRoute |
match(HTTPMethod httpMethod,
String path) |
void |
setDefaultRequestHandler(Class<? extends RequestHandler> requestHandler) |
public void add(String httpMethod, String path, Class<? extends RequestHandler> requestHandler)
public void setDefaultRequestHandler(Class<? extends RequestHandler> requestHandler)
public MatchedRoute match(HTTPMethod httpMethod, String path)
Copyright © 2017. All rights reserved.