Interface Interceptable<A extends ExchangeContext,B extends Exchange<A>,C extends Interceptable<A,B,C,D>,D extends InterceptorManager<A,B,C,D>>

Type Parameters:
A - the type of the exchange context
B - the type of intercepted exchange
C - the interceptable type
D - the interceptor manager type
All Known Subinterfaces:
ErrorInterceptedRouter<A,B,C,D,E,F,G,H>, ErrorRouter<A,B,C,D,E,F,G,H>, ErrorWebInterceptable<A,B>, ErrorWebInterceptedRouter<A>, ErrorWebRouter<A>, InterceptedRouter<A,B,C,D,E,F,G,H>, Router<A,B,C,D,E,F,G,H>, WebInterceptable<A,B>, WebInterceptedRouter<A>, WebRouter<A>

public interface Interceptable<A extends ExchangeContext,B extends Exchange<A>,C extends Interceptable<A,B,C,D>,D extends InterceptorManager<A,B,C,D>>

Defines method to specify interceptors on a router.

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

    Modifier and Type
    Method
    Description
    Returns an interceptor manager to define route interceptors.
    default C
    intercept(Consumer<D> interceptorConfigurer)
    Invokes the specified interceptor configurer on an interceptor manager.
  • Method Details

    • intercept

      D intercept()

      Returns an interceptor manager to define route interceptors.

      Returns:
      an interceptor manager
    • intercept

      default C intercept(Consumer<D> interceptorConfigurer)

      Invokes the specified interceptor configurer on an interceptor manager.

      Parameters:
      interceptorConfigurer - an interceptor configurer
      Returns:
      an intercepted router