Adding different handler in single Jetty server

You can use org.eclipse.jetty.server.handler.HandlerCollection (Jetty 9)

HandlerCollection handlerCollection = new HandlerCollection();
handlerCollection.setHandlers(new Handler[] {servletHandler, myWebSocketHandler});

Later add handlers to the collection:

handlerCollection.addHandler(newHandler);

Finally,

server.setHandler(handlerCollection);
server.start();

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyHandlers.java

This is an example of using many handlers at once on the same server.

Eventually it will be added to the documentation here:

http://www.eclipse.org/jetty/documentation/current/embedded-examples.html

Until that time there are many other examples there that should help make things clearer as well.