Interface Routable<A extends ExchangeContext,B extends Exchange<A>,C extends Routable<A,B,C,D,E>,D extends RouteManager<A,B,C,D,E>,E extends Route<A,B>>

Type Parameters:
A - the type of the exchange context
B - the type of exchange handled by the route
C - the routable type
D - the route manager type
E - the route type
All Known Subinterfaces:
ErrorInterceptedRouter<A,B,C,D,E,F,G,H>, ErrorRouter<A,B,C,D,E,F,G,H>, ErrorWebInterceptedRouter<A>, ErrorWebRoutable<A,B>, ErrorWebRouter<A>, InterceptedRouter<A,B,C,D,E,F,G,H>, Router<A,B,C,D,E,F,G,H>, WebInterceptedRouter<A>, WebRoutable<A,B>, WebRouter<A>

public interface Routable<A extends ExchangeContext,B extends Exchange<A>,C extends Routable<A,B,C,D,E>,D extends RouteManager<A,B,C,D,E>,E extends Route<A,B>>

Defines method to specify interceptors on a router.

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

    Modifier and Type
    Method
    Description
    Returns the routes defined in the router.
    Returns a route manager to define, enable, disable, remove or find routes in the router.
    default C
    route(Consumer<D> routeConfigurer)
    Invokes the specified route configurer on a route manager.
  • Method Details

    • route

      D route()

      Returns a route manager to define, enable, disable, remove or find routes in the router.

      Returns:
      a route manager
    • route

      default C route(Consumer<D> routeConfigurer)

      Invokes the specified route configurer on a route manager.

      Parameters:
      routeConfigurer - a route configurer
      Returns:
      the router
    • getRoutes

      Set<E> getRoutes()

      Returns the routes defined in the router.

      Returns:
      a set of routes or an empty set if no route is defined in the router