protected void doStart() throws Exception { server = new Server(); if (connector == null) { connector = socketConnectorFactory.createConnector(); } URI bind = getBindLocation(); bind(); ServletContextHandler contextHandler = new ServletContextHandler(server, "/", ServletContextHandler.NO_SECURITY); ServletHolder holder = new ServletHolder(); holder.setServlet(new HttpTunnelServlet()); contextHandler.addServlet(holder, "/"); contextHandler.setAttribute("acceptListener", getAcceptListener()); contextHandler.setAttribute("wireFormat", getWireFormat()); contextHandler.setAttribute("transportFactory", transportFactory); contextHandler.setAttribute("transportOptions", transportOptions); GzipHandler gzipHandler = new GzipHandler(); contextHandler.setHandler(gzipHandler); server.start(); }