This module defines contracts and factories interfaces for creating Handlers used during the server route processing.
Please refer to the Data Objects docs for the detailed information about API contracts.
Routing Hanlders are the basic Handlers that can be plugged
into the route processing and operate on the RoutingContext.
RequestEventHandler
is basic implementation of such handler.
Implement RoutingHandlerFactory
that:
- is identified by
namein the operations configuration - is registered for the Service Loader in
META-INF/services/io.knotx.server.api.handler.RoutingHandlerFactory - creates
Handler<RoutingContext>instance that operates on theRoutingContext.
AuthHandler is responsible
for providing authentication for routes.
Implement AuthHandlerFactory
that:
- is identified by
namein server security handlers configuration - is registered for the Service Loader in
META-INF/services/io.knotx.server.api.security.AuthHandlerFactory - creates
AuthHandlerinstance corresponding to the type defined in the Open API security scheme