Package spark.route

Class SimpleRouteMatcher


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

      • SimpleRouteMatcher

        public SimpleRouteMatcher()
        Deprecated.
    • Method Detail

      • parseValidateAddRoute

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

        public RouteMatch findTargetForRequestedRoute​(HttpMethod httpMethod,
                                                      java.lang.String path,
                                                      java.lang.String acceptType)
        Deprecated.
        Parameters:
        httpMethod - the HttpMethod
        path - the path
        acceptType - 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 HttpMethod
        path - the path
        acceptType - 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 path
        httpMethod - 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