code: @Override
    public void handle(
        final String target,
        final HttpServletRequest request,
        final HttpServletResponse response,
        final int i)
        throws IOException, ServletException {
      LOG.log(Level.INFO, "JettyHandler handle is entered with target: {0} ", target);
  
      final Request baseRequest = (request instanceof Request) ? (Request) request :
          HttpConnection.getCurrentConnection().getRequest();
  
      response.setContentType("text/html;charset=utf-8");
  
      final ParsedHttpRequest parsedHttpRequest = new ParsedHttpRequest(request);
      final HttpHandler handler = validate(request, response, parsedHttpRequest);
      if (handler != null) {
        LOG.log(Level.INFO, "calling HttpHandler.onHttpRequest from JettyHandler.handle() for {0}.",
            handler.getUriSpecification());
        handler.onHttpRequest(parsedHttpRequest, response);
        response.setStatus(HttpServletResponse.SC_OK);
      }
  
      baseRequest.setHandled(true);
      LOG.log(Level.INFO, "JettyHandler handle exists");
    }
docs: handle http request.
  
  @param target
  @param request
  @param response
  @param i
  @throws IOException
  @throws ServletException