public static HttpHandler predicateContext(HttpHandler next) {
return new PredicateContextHandler(next);
}
public static PredicatesHandler predicates(final List<PredicatedHandler> handlers, HttpHandler next) {
final PredicatesHandler predicatesHandler = new PredicatesHandler(next);
for(PredicatedHandler handler : handlers) {
predicatesHandler.addPredicatedHandler(handler);
}
return predicatesHandler;
}