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 TypeMethodDescriptionvoid
Deprecated.findTargetForRequestedRoute
(HttpMethod httpMethod, String path, String acceptType) Deprecated.findTargetsForRequestedRoute
(HttpMethod httpMethod, String path, String acceptType) Deprecated.void
parseValidateAddRoute
(String route, String acceptType, Object target) Deprecated.boolean
removeRoute
(String path) Deprecated.boolean
removeRoute
(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