fixed header

This commit is contained in:
Greg Wilkins 2015-02-05 08:46:02 +11:00
parent 741d7891f3
commit 2971f868d5
1 changed files with 3 additions and 2 deletions

View File

@ -37,8 +37,9 @@ public class ExampleServer
server.setConnectors(new Connector[] { connector });
ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/hello");
context.addServlet(HelloServlet.class, "/");
context.setContextPath("/");
context.addServlet(HelloServlet.class, "/hello");
context.addServlet(AsyncEchoServlet.class, "/echo/*");
HandlerCollection handlers = new HandlerCollection();
handlers.setHandlers(new Handler[] { context, new DefaultHandler() });