Interface WebServer.Intercepted<A extends ExchangeContext>

Type Parameters:
A - the exchange context type
All Superinterfaces:
BaseWebRouter, ErrorWebRouteInterceptor<A>, ErrorWebRouter<A>, WebRouteInterceptor<A>, WebRouter<A>, WebServer<A>
Enclosing interface:
WebServer<A extends ExchangeContext>

public static interface WebServer.Intercepted<A extends ExchangeContext> extends WebServer<A>

An intercepted Web server applies interceptors when defining Web routes or error Web routes when their criteria are matching interceptor definitions.

Intercepted Web servers are returned by WebRouteInterceptor or ErrorWebRouteInterceptor after defining interceptors resulting in trees of intercepted Web server where each node can apply all previously defined interceptors.

When defining a route, the intercepted Web server resolves all interceptors matching the route's criteria and applies them to the route handler. When the set of exchanges matched by the route is bigger than the set of exchanges matched by the interceptor definition, the exchange interceptor is wrapped to order to filter exchanges that exactly match the interceptor's criteria.

Since:
1.12
Author:
Jeremy Kuhn