Class RequestPredicate.ConditionalHandler

All Implemented Interfaces:
Handler, BiConsumer<ServerRequest,ServerResponse>
Enclosing class:

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.