users@jersey.java.net

[Jersey] How to use JettyHttpContainerFactory?

From: Ing. Michal Stehlik <stehlik.michal_at_gmail.com>
Date: Tue, 23 Sep 2014 20:19:52 +0200

Hi,

I try to use embedded Jetty and Jersey. After some tests I end up with
using JettyHttpContainerFactory, but I realize, that with this container
factory I can not configure ServletContextHandler, because Server which is
generated already use JettyHttpContainer. Is there some way, how I can add
filters into JettyHttpContainer and how to configure ServletContextHandler
using JettyHttpContainerFactory? Or should I create embedded jetty by my
self and add filters etc. the old fashion way?

If the old fashion way is feasable, how can I add resource config into
jetty just with source code?

Best regards
Ing. Michal Stehlik