Server server = new Server();
Connector connector=new SelectChannelConnector();
connector.setPort(8080);
server.setConnectors(new Connector[]{connector});
ContextHandler context0 = new ContextHandler();
context0.setContextPath("/zero");
Handler handler0=new HelloHandler();
context0.setHandler(handler0);
ContextHandler context1 = new ContextHandler();
context1.setContextPath("/one");
Handler handler1=new HelloHandler();
context1.setHandler(handler1);
ContextHandlerCollection contexts = new ContextHandlerCollection();
contexts.setHandlers(new Handler[]{context0,context1});
HandlerCollection handlers = new HandlerCollection();