Package spark.route
Class SimpleRouteMatcher
- java.lang.Object
-
- spark.route.Routes
-
- spark.route.SimpleRouteMatcher
-
-
Constructor Summary
Constructors Constructor Description SimpleRouteMatcher()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clearRoutes()
Deprecated.RouteMatch
findTargetForRequestedRoute(HttpMethod httpMethod, java.lang.String path, java.lang.String acceptType)
Deprecated.java.util.List<RouteMatch>
findTargetsForRequestedRoute(HttpMethod httpMethod, java.lang.String path, java.lang.String acceptType)
Deprecated.void
parseValidateAddRoute(java.lang.String route, java.lang.String acceptType, java.lang.Object target)
Deprecated.boolean
removeRoute(java.lang.String path)
Deprecated.boolean
removeRoute(java.lang.String path, java.lang.String httpMethod)
Deprecated.
-
-
-
Method Detail
-
parseValidateAddRoute
public void parseValidateAddRoute(java.lang.String route, java.lang.String acceptType, java.lang.Object target)
Deprecated.- Parameters:
route
- the routeacceptType
- the accept typetarget
- the target
-
findTargetForRequestedRoute
public RouteMatch findTargetForRequestedRoute(HttpMethod httpMethod, java.lang.String path, java.lang.String acceptType)
Deprecated.- Parameters:
httpMethod
- the HttpMethodpath
- the pathacceptType
- the accept type- Returns:
- the RouteMatch object
-
findTargetsForRequestedRoute
public java.util.List<RouteMatch> findTargetsForRequestedRoute(HttpMethod httpMethod, java.lang.String path, java.lang.String acceptType)
Deprecated.- Parameters:
httpMethod
- the HttpMethodpath
- the pathacceptType
- the accept type- Returns:
- list of RouteMatch objects
-
clearRoutes
public void clearRoutes()
Deprecated.
-
removeRoute
public boolean removeRoute(java.lang.String path, java.lang.String httpMethod)
Deprecated.- Parameters:
path
- the pathhttpMethod
- the http method name- Returns:
- true if route removed, false otherwise
-
removeRoute
public boolean removeRoute(java.lang.String path)
Deprecated.- Parameters:
path
- the path- Returns:
- true if route removed, false otherwise
-
-