Optional<RequestFilter> resolveRequestFilter(Request request, URI jdiscUri) {
        Optional<String> maybeFilterId = bindings.resolveRequestFilter(jdiscUri, getConnector(request).listenPort());
        if (maybeFilterId.isPresent()) {
            request.setAttribute(RequestUtils.JDISC_REQUEST_CHAIN, maybeFilterId.get());
        } else if (bindings.strictFiltering()) {
            String syntheticFilterId = RejectingRequestFilter.SYNTHETIC_FILTER_CHAIN_ID;
            request.setAttribute(RequestUtils.JDISC_REQUEST_CHAIN, syntheticFilterId);
            return Optional.of(RejectingRequestFilter.INSTANCE);
        }
        return maybeFilterId.map(bindings::getRequestFilter);
    }
Resolve request/response filter (chain) based on {@link FilterBindings}.

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/FilterResolver.java