Thank you. My dump now shows the mapping of my query path to my handler class:
+= org.eclipse.jetty.server.handler.HandlerList@501edcf1[o.e.j.s.ServletContextHandler@2890c451{/,null,AVAILABLE}, org.eclipse.jetty.server.handler.DefaultHandler@78b729e6] - STARTED
| += o.e.j.s.ServletContextHandler@2890c451{/,null,AVAILABLE} - STARTED
| | += org.eclipse.jetty.servlet.ServletHandler@6b4a4e18 - STARTED
| | | += com.example.UtteranceMetadataFromPost-6591f517@254ec81d==com.example.UtteranceMetadataFromPost,jsp=null,order=-1,inst=true - STARTED
| | | +- [/metadataForUtterance]=>com.example.UtteranceMetadataFromPost-6591f517
| | | += org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-53ca01a2@170224c2==org.eclipse.jetty.servlet.ServletHandler$Default404Servlet,jsp=null,order=-1,inst=false - STARTED
| | | +- [/]=>org.eclipse.jetty.servlet.ServletHandler$Default404Servlet-53ca01a2
| | |
| | +> No ClassLoader
| | +> Handler attributes o.e.j.s.ServletContextHandler@2890c451{/,null,AVAILABLE}
| | | +- org.eclipse.jetty.server.Executor=qtp1414147750{STARTED,6<=6<=6,i=1,q=0}
| | +> Context attributes o.e.j.s.ServletContextHandler@2890c451{/,null,AVAILABLE}
| | | +- org.eclipse.jetty.util.DecoratedObjectFactory=org.eclipse.jetty.util.DecoratedObjectFactory[decorators=1]
| | +> Initparams o.e.j.s.ServletContextHandler@2890c451{/,null,AVAILABLE}
| += org.eclipse.jetty.server.handler.DefaultHandler@78b729e6 - STARTED
and now my curl test works.
You created oContext but never really added it as a handler to your server.
Add this, before _oServer.start();
// import org.eclipse.jetty.server.handler.HandlerList;
// import org.eclipse.jetty.server.handler.DefaultHandler;
HandlerList handlers = new HandlerList();
handlers.addHandler(oContext);
handlers.addHandler(new DefaultHandler());
_oServer.setHandler(handlers);