Interface RouteManager


public interface RouteManager
  • Method Details

    • createRoute

      Route createRoute(String name)
      Creates a new route with the specified name. The resulting route is not saved to disk, and will be lost when the plugin is unloaded.
      Parameters:
      name - the route name
      Returns:
      the new route
      Throws:
      IllegalStateException - if a route with the specified name already exists
      See Also:
    • removeRoute

      void removeRoute(String name)
      Attempts to remove the route with the specified name. If no such route exists, nothing will happen. The route file is also removed from the file system if it exists.
      Parameters:
      name - the route name
    • removeRoute

      void removeRoute(Route route)
      Removes the specified route. The route file is also removed from the file system if it exists.
      Parameters:
      route - the route
    • getRoute

      Route getRoute(String name)
    • getRoutes

      Set<? extends Route> getRoutes()
    • getRouteNames

      Set<String> getRouteNames()