Interface BaseWebRouteManager<A extends ExchangeContext,B extends Exchange<A>,C extends BaseWebRoute<A,B>,D extends BaseWebRouter>

Type Parameters:
A - the exchange context type
B - the exchange type
C - the Web route type
D - the Web router type
All Known Subinterfaces:
ErrorWebRouteManager<A,B>, WebRouteManager<A,B>, WebSocketRouteManager<A,B>

public interface BaseWebRouteManager<A extends ExchangeContext,B extends Exchange<A>,C extends BaseWebRoute<A,B>,D extends BaseWebRouter>

Base Web route manager.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Disables all the routes currently defined in the router that are matching the criteria specified in the route manager.
    Enables all the routes currently defined in the router that are matching the criteria specified in the route manager.
    Finds all the routes currently defined that are matching the criteria specified in the route manager.
    Removes all the routes currently defined in the router that are matching the criteria specified in the route manager.
  • Method Details

    • enable

      D enable()

      Enables all the routes currently defined in the router that are matching the criteria specified in the route manager.

      Returns:
      the router
    • disable

      D disable()

      Disables all the routes currently defined in the router that are matching the criteria specified in the route manager.

      Returns:
      the router
    • remove

      D remove()

      Removes all the routes currently defined in the router that are matching the criteria specified in the route manager.

      Returns:
      the router
    • findRoutes

      Set<C> findRoutes()

      Finds all the routes currently defined that are matching the criteria specified in the route manager.

      Returns:
      a set of routes or an empty set if no route matches the criteria