public static PredicateHandler predicate ( final Predicate predicate , final HttpHandler trueHandler , final HttpHandler falseHandler ) { return new PredicateHandler ( predicate , trueHandler , falseHandler ) ; }
Returns a new predicate handler that will delegate to one of the two provided handlers based on the value of the provided predicate .