java.lang.Object
io.helidon.webserver.http.Filters
- All Implemented Interfaces:
ServerLifecycle
Handler of HTTP filters.
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterStart(WebServer webServer) After server start.voidAfter server stop.voidBefore server start.static Filterscreate(ErrorHandlers errorHandlers, List<Filter> filters) Create filters.voidfilter(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:ServerLifecycleBefore server start.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStart
Description copied from interface:ServerLifecycleAfter server start.- Specified by:
afterStartin interfaceServerLifecycle- Parameters:
webServer- theWebServerthat was started
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop.- Specified by:
afterStopin 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)
-