-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Renzo,
On 27/06/14 10:06, Renzo wrote: > I'm designing a Webdav application, using Felix and the HTTP > service. It's engineered as a servlet, where the Webdav part is > done by Jakarta Slide. So far, so good, it works fine by accepting > HTTP requests. > > Now, I would configure the embedded Jetty server to enable > authentication. Basically, I want to configure the server through > a custom web.xml containing security-constraint and alike. > > The point here is that I cannot find any way to retrieve the Jetty > server. I need it to apply a WebAppContext (setHandler), created > at runtime according to web.xml contents. If you want to "just handle" security, then you wouldn't need to have access to the Jetty server, you can simple register a custom HttpContext implementation and associate those with your servlets. The #handleSecurity method in your HttpContext implementation could do all the authentication stuff. Alternatively, you could look into the Web Application specification, allowing you to provide a WAR (with some additional metadata) that can be deployed into Felix HTTP. HtH, - -- Met vriendelijke groeten | Kind regards Jan Willem Janssen | Software Architect +31 631 765 814 /My world is revolving around PulseOn and Amdatu/ Luminis Technologies B.V. J.C. Wilslaan 29 7313 HK Apeldoorn +31 88 586 46 30 http://www.luminis-technologies.com http://www.luminis.eu KvK (CoC) 09 16 28 93 BTW (VAT) NL8169.78.566.B.01 -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJTrTV5AAoJEKF/mP2eHDc4NLgP/3uAJ4vFl2reiI1lj60nFjNs Wh4ISR5N++JkfSQUt+blVdv42WZPPyc/ZaOQdSdzwzJLViIYy6lru6l7WY+UB5W+ bzH9wM/HKpFlNk8BULYaZ5y1Wt98jjW67dMe4JejFWxWvB02kKduej+jW6TuujFF m9mgGCt0R9Lc/EnBEvWKJf2biyONEDAyYRKL0CgMtrepHjJC03CTk5/++j6d8hk7 vIamopQ6r/vevR6P5SEdraOc5TJXehAVNNe7abnqLSsI/h/jsJlGCrzXCu4q4bHm qcWp503hVjQqHswgO/HmJWfSOExSucmOw+TZn2wypk6HKQSe852eQB4mLLt40ZU5 0v6Up17ui5tHFWcLlgAw0FXNk4zjxPJKNS6eU05xhQpXuuaVQJx3F5tmZB3di/DO M+KIbVnx3FehSpflBR808IrAYm5Nr/Ga/PZEW0k6lCzDVoMWnKkGe3TR82PC7ndz Nc0N/VBOirrfJ98rRKADNN4Yv+6GIHxGdQbPvB7y6dcAlzatsA5OpJfEGxe/ZLf/ 2DsR1CSUuqtWaUan4oimb8LhYzdQ5pCfY31HxQyo4/DgmtKJ0n90boa+Zn9Ju2Df u9qONky0LY8oh8lhWG0aIeeoPJ/HoKm4vRnh5IP3aX4Bfp3P3irTuI8omuFT8Hhb O7gwFy0suXT9WChZxWlJ =Sqdc -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

