If I use WebContainer, is it possible to define within the start method of the class implementing the BundleActivator, the Web context Path of the module/bundle that we will register within the HTTP Jetty Server ?
On Fri, Feb 5, 2016 at 1:40 PM, Achim Nierbeck <[email protected]> wrote: > Yes of course the samples do contain such a sample and > of course there is an Integration test available for it :-) > > > 2016-02-05 12:47 GMT+01:00 Jean-Baptiste Onofré <[email protected]>: > >> Yes, I have something that I did for ActiveMQ WebConsole, leveraging >> etc/jetty.xml. >> >> Regards >> JB >> >> >> On 02/05/2016 12:45 PM, Charles Moulliard wrote: >> >>> Hi, >>> >>> Do we have an example where we map Security Constraint (web.xml) >>> >>> >>> <security-constraint> >>> <web-resource-collection> >>> <web-resource-name>apiman-gateway-api</web-resource-name> >>> <url-pattern>/*</url-pattern> >>> </web-resource-collection> >>> <auth-constraint> >>> <role-name>apipublisher</role-name> >>> </auth-constraint> >>> </security-constraint> >>> <login-config> >>> <auth-method>BASIC</auth-method> >>> <realm-name>apiman</realm-name> >>> </login-config> >>> <security-role> >>> <role-name>apipublisher</role-name> >>> </security-role> >>> >>> to the Pax Web >>> >>> WebContainer.registerConstraintMapping() >>> >>> Regards, >>> >>> -- >>> Charles Moulliard >>> Apache Committer & PMC / Architect @RedHat >>> Twitter : @cmoulliard | Blog : http://cmoulliard.github.io >>> <http://cmoulliard.github.io> >>> >>> >> -- >> Jean-Baptiste Onofré >> [email protected] >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> > > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> > > Software Architect / Project Manager / Scrum Master > > -- Charles Moulliard Apache Committer & PMC / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
