Package spark.route
Class SimpleRouteMatcher
java.lang.Object
spark.route.Routes
spark.route.SimpleRouteMatcher
Deprecated.
Kept just for not breaking API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.findTargetForRequestedRoute(HttpMethod httpMethod, String path, String acceptType) Deprecated.findTargetsForRequestedRoute(HttpMethod httpMethod, String path, String acceptType) Deprecated.voidparseValidateAddRoute(String route, String acceptType, Object target) Deprecated.booleanremoveRoute(String path) Deprecated.booleanremoveRoute(String path, String httpMethod) Deprecated.
-
Constructor Details
-
SimpleRouteMatcher
public SimpleRouteMatcher()Deprecated.
-
-
Method Details
-
parseValidateAddRoute
Deprecated.- Parameters:
route- the routeacceptType- the accept typetarget- the target
-
findTargetForRequestedRoute
public RouteMatch findTargetForRequestedRoute(HttpMethod httpMethod, String path, String acceptType) Deprecated.- Parameters:
httpMethod- the HttpMethodpath- the pathacceptType- the accept type- Returns:
- the RouteMatch object
-
findTargetsForRequestedRoute
public List<RouteMatch> findTargetsForRequestedRoute(HttpMethod httpMethod, String path, String acceptType) Deprecated.- Parameters:
httpMethod- the HttpMethodpath- the pathacceptType- the accept type- Returns:
- list of RouteMatch objects
-
clearRoutes
public void clearRoutes()Deprecated. -
removeRoute
Deprecated.- Parameters:
path- the pathhttpMethod- the http method name- Returns:
- true if route removed, false otherwise
-
removeRoute
Deprecated.- Parameters:
path- the path- Returns:
- true if route removed, false otherwise
-
Routes