Interface InterceptedRouter<A extends ExchangeContext,B extends Exchange<A>,C extends Router<A,B,C,D,E,F,G,H>,D extends InterceptedRouter<A,B,C,D,E,F,G,H>,E extends RouteManager<A,B,C,E,H>,F extends RouteManager<A,B,D,F,H>,G extends InterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>

Type Parameters:
A - the type of the exchange context
B - the type of exchange handled by the route
C - the router type
D - the intercepted router type
E - the route manager type
F - the intercepted route manager type
G - the interceptor manager type
H - the interceptable route type
All Superinterfaces:
Interceptable<A,B,D,G>, Routable<A,B,D,F,H>
All Known Subinterfaces:
WebInterceptedRouter<A>

public interface InterceptedRouter<A extends ExchangeContext,B extends Exchange<A>,C extends Router<A,B,C,D,E,F,G,H>,D extends InterceptedRouter<A,B,C,D,E,F,G,H>,E extends RouteManager<A,B,C,E,H>,F extends RouteManager<A,B,D,F,H>,G extends InterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>> extends Routable<A,B,D,F,H>, Interceptable<A,B,D,G>

A router that applies interceptors to matching route as they are created or to all the routes currently defined in the router.

An intercepting router typically wraps an underlying Router and intercepts route creation.

Since:
1.3
Author:
Jeremy Kuhn
  • Method Details

    • getInterceptors

      List<? extends ExchangeInterceptor<A,B>> getInterceptors()

      Returns the list of interceptors configured in the router.

      Returns:
      a list of exchange interceptors
    • applyInterceptors

      D applyInterceptors()

      Applies the interceptors to all the routes previously defined in the router.

      Returns:
      this router
    • getRouter

      C getRouter()

      Returns the underlying non-intercepting router.

      Returns:
      the underlying non-intercepting router.