Package spark.route

Class SimpleRouteMatcher

java.lang.Object
spark.route.Routes
spark.route.SimpleRouteMatcher

public class SimpleRouteMatcher extends Routes
Deprecated.
see Routes
Kept just for not breaking API.
  • Constructor Details

    • SimpleRouteMatcher

      public SimpleRouteMatcher()
      Deprecated.
  • Method Details

    • parseValidateAddRoute

      public void parseValidateAddRoute(String route, String acceptType, Object target)
      Deprecated.
      Parameters:
      route - the route
      acceptType - the accept type
      target - the target
    • findTargetForRequestedRoute

      public RouteMatch findTargetForRequestedRoute(HttpMethod httpMethod, String path, String acceptType)
      Deprecated.
      Parameters:
      httpMethod - the HttpMethod
      path - the path
      acceptType - the accept type
      Returns:
      the RouteMatch object
    • findTargetsForRequestedRoute

      public List<RouteMatch> findTargetsForRequestedRoute(HttpMethod httpMethod, String path, String acceptType)
      Deprecated.
      Parameters:
      httpMethod - the HttpMethod
      path - the path
      acceptType - the accept type
      Returns:
      list of RouteMatch objects
    • clearRoutes

      public void clearRoutes()
      Deprecated.
    • removeRoute

      public boolean removeRoute(String path, String httpMethod)
      Deprecated.
      Parameters:
      path - the path
      httpMethod - the http method name
      Returns:
      true if route removed, false otherwise
    • removeRoute

      public boolean removeRoute(String path)
      Deprecated.
      Parameters:
      path - the path
      Returns:
      true if route removed, false otherwise