@Override
    public void doHandle(
            String target,
            Request baseRequest,
            HttpServletRequest request,
            HttpServletResponse response) throws IOException, ServletException {

        HttpRequestWrapper wrapper = new HttpRequestWrapper(request);
        filter.doFilter(wrapper, response, null);

        if (wrapper.notConsumed()) {
            baseRequest.setHandled(false);
        } else {
            baseRequest.setHandled(true);
        }

    }
Simple Jetty Handler

@author Per Wendel
src/main/java/spark/embeddedserver/jetty/JettyHandler.java