Class RequestPredicate.ConditionalHandler

java.lang.Object
io.helidon.webserver.RequestPredicate.ConditionalHandler
All Implemented Interfaces:
Handler, BiConsumer<ServerRequest,ServerResponse>
Enclosing class:
RequestPredicate

public static class RequestPredicate.ConditionalHandler extends Object implements Handler
A Handler that conditionally delegates to other Handler instances based on a RequestPredicate. There can be at most 2 handlers: a required one for matched requests and an optional one for requests that are not matched. If the handler for non matched requests is not provided, such request will return a 404 response.