public class SimpleRouteMatcher extends Object
Constructor and Description |
---|
SimpleRouteMatcher()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clearRoutes()
¨Clear all routes
|
RouteMatch |
findTargetForRequestedRoute(HttpMethod httpMethod,
String path,
String acceptType)
finds target for a requested route
|
List<RouteMatch> |
findTargetsForRequestedRoute(HttpMethod httpMethod,
String path,
String acceptType)
Finds multiple targets for a requested route.
|
void |
parseValidateAddRoute(String route,
String acceptType,
Object target)
Parse and validates a route and adds it
|
public void parseValidateAddRoute(String route, String acceptType, Object target)
route
- the route pathacceptType
- the accept typetarget
- the invocation targetpublic RouteMatch findTargetForRequestedRoute(HttpMethod httpMethod, String path, String acceptType)
httpMethod
- the http methodpath
- the pathacceptType
- the accept typepublic List<RouteMatch> findTargetsForRequestedRoute(HttpMethod httpMethod, String path, String acceptType)
httpMethod
- the http methodpath
- the route pathacceptType
- the accept typepublic void clearRoutes()
Copyright © 2014. All Rights Reserved.