- All Superinterfaces:
ServerLifecycle
HTTP filter.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
filter
(FilterChain chain, RoutingRequest req, RoutingResponse res) Handle a request.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop, beforeStart
-
Method Details
-
filter
Handle a request. If request processing should be terminated, do not callFilterChain.proceed()
. If request processing should continue with next filter, callFilterChain.proceed()
.FilterChain.proceed()
may throw an exception. The following exceptions mean the connection will close (and the request cannot finish): Filters may throwHttpException
(or its subclasses), all filters before the current filter will not receive such an exception - it will be processed before the methodFilterChain.proceed()
returns.- Parameters:
chain
- to proceed with further filters (or routing if this is the last filter)req
- routing requestres
- routing response
-