Interface ErrorInterceptedRouter<A extends ExchangeContext,B extends ErrorExchange<A>,C extends ErrorRouter<A,B,C,D,E,F,G,H>,D extends ErrorInterceptedRouter<A,B,C,D,E,F,G,H>,E extends ErrorRouteManager<A,B,C,E,H>,F extends ErrorRouteManager<A,B,D,F,H>,G extends ErrorInterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>>

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

public interface ErrorInterceptedRouter<A extends ExchangeContext,B extends ErrorExchange<A>,C extends ErrorRouter<A,B,C,D,E,F,G,H>,D extends ErrorInterceptedRouter<A,B,C,D,E,F,G,H>,E extends ErrorRouteManager<A,B,C,E,H>,F extends ErrorRouteManager<A,B,D,F,H>,G extends ErrorInterceptorManager<A,B,D,G>,H extends InterceptableRoute<A,B>> extends Routable<A,B,D,F,H>, Interceptable<A,B,D,G>

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

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

Since:
1.5
Author:
Jeremy Kuhn
  • Method Details

    • getInterceptors

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

      Returns the list of interceptors configured in the error router.

      Returns:
      a list of exchange interceptors
    • applyInterceptors

      D applyInterceptors()

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

      Returns:
      this error router
    • getRouter

      C getRouter()

      Returns the underlying non-intercepting error router.

      Returns:
      the underlying non-intercepting error router.