java.lang.Object
io.helidon.webserver.http.Filters
- All Implemented Interfaces:
ServerLifecycle
Handler of HTTP filters.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
After server stop.void
Before server start.static Filters
create
(ErrorHandlers errorHandlers, List<Filter> filters) Create filters.void
filter
(ConnectionContext ctx, RoutingRequest request, RoutingResponse response, Callable<Void> routingExecutor) Filter request.
-
Method Details
-
create
Create filters.- Parameters:
errorHandlers
- error handlers to handle thrown exceptionsfilters
- list of filters to use- Returns:
- filters
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycle
Before server start.- Specified by:
beforeStart
in interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycle
After server stop.- Specified by:
afterStop
in interfaceServerLifecycle
-
filter
public void filter(ConnectionContext ctx, RoutingRequest request, RoutingResponse response, Callable<Void> routingExecutor) Filter request.- Parameters:
ctx
- connection contextrequest
- requestresponse
- responseroutingExecutor
- this handler is called after all filters finish processing (unless a filter does not invoke the chain)
-