Hello "The handler" of single Jetty server inside pax-web is org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection - which is kind of "entry point" from Jetty to pax-web. You generally should not change it. In pax-web, the server is org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper class (extending directly from org.eclipse.jetty.server.Server). So you can't easily change it.
If you mean Default and Error handlers of single web application, you can. DefaultHandler is just servlet registered with "/" alias and "default" name - it's registered even if you don't have such explicit servlet - pax-web-jetty will register one for you (unless you provide your own). See for example this sample <https://github.com/ops4j/org.ops4j.pax.web/blob/pax-web-6.1.x/samples/http-custom-context/src/main/java/org/ops4j/pax/web/samples/custom/context/Activator.java#L77> . regards Grzegorz Grzybek 2018-02-04 15:03 GMT+01:00 Maurice Betzel <[email protected]>: > Dear community, > > what is the best way to override the Jetty default > org.eclipse.jetty.server.handler.DefaultHandler and ErrorHandler? > By jetty.xml DI configuration or can this be done by pax web services, and > if yes are there any examples? > Other suggestions also welcome. > > -- > -- > ------------------ > OPS4J - http://www.ops4j.org - [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "OPS4J" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- ------------------ OPS4J - http://www.ops4j.org - [email protected] --- You received this message because you are subscribed to the Google Groups "OPS4J" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
