servletContext.addServlet(new ServletHolder(new JobsServlet(uploadDir, tmpDir, "launch.html")), "/jobs");
servletContext.addServlet(new ServletHolder(new JobSubmissionServlet(nepheleConfig, uploadDir, planDumpDir)),
"/runJob");
// ----- the hander serving the written pact plans -----
ResourceHandler pactPlanHandler = new ResourceHandler();
pactPlanHandler.setDirectoriesListed(false);
pactPlanHandler.setResourceBase(planDumpDir.getAbsolutePath());
ContextHandler pactPlanContext = new ContextHandler();
pactPlanContext.setContextPath("/ajax-plans");
pactPlanContext.setHandler(pactPlanHandler);
// ----- the handler serving all the static files -----
ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setDirectoriesListed(false);
resourceHandler.setResourceBase(webDir.getAbsolutePath());
// ----- add the handlers to the list handler -----
HandlerList handlers = new HandlerList();
handlers.addHandler(servletContext);
handlers.addHandler(pactPlanContext);