Re: [osgi-dev] ConditionalServlets

2016-11-16 Thread David Daniel
They are two different frameworks. The article you linked to earlier was about using bndtools to debug a karaf distribution and not about enroute http://enroute.osgi.org/appnotes/bndtools-and-karaf.html. I would suggest if you looking to use karaf then you start there with the karaf maven tools.

Re: [osgi-dev] ConditionalServlets

2016-11-16 Thread Tim Ward
I'm using enRoute and targeting Karaf. On 16/11/2016 11:59, David Daniel wrote: It is really going to depend on your library and bundles you use. I used to do it in my activator like import java.util.Dictionary; import org.ops4j.pax.web.extender.whiteboard.ResourceMapping; import org.ops4j.

Re: [osgi-dev] ConditionalServlets

2016-11-16 Thread David Daniel
It is really going to depend on your library and bundles you use. I used to do it in my activator like import java.util.Dictionary; import org.ops4j.pax.web.extender.whiteboard.ResourceMapping; import org.ops4j.pax.web.extender.whiteboard.runtime.DefaultResourceMapping; import org.osgi.framework

Re: [osgi-dev] ConditionalServlets

2016-11-16 Thread Tim Ward
Basically I was just trying to understand the documentation I quoted; I'd been led there whilst looking for some way to serve a static resource from a less complicated URL. I have not found any documentation of how to actually use ConditionalServlet - your response below tells me that I can do

Re: [osgi-dev] ConditionalServlets

2016-11-15 Thread David Leangen
Hi Tim, You just need a class that implements ConditionalServlet, and register it (for example) using DS. By following the ConditionalServlet algorithm, you should be able to accomplish anything you need to do. It may be easier if you have more specific questions. What are you trying to acc

[osgi-dev] ConditionalServlets

2016-11-15 Thread Tim Ward
In https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.web.simple.provider it says "By adding, removing, and reordering |ConditionalServlet|s, you can gain unlimited control of what happens on the root path." How, exactly? - what does one actually *do* to "add" (eg) a Cond