how does osgi.http.whiteboard.filter.regex got passed to servlet container?

10 views
Skip to first unread message

Nhut Thai Le

unread,
Aug 15, 2019, 9:58:17 AM8/15/19
to OPS4J
Hello,

In section 140.5 of the osgi cmpn r7, it states that either osgi.http.whiteboard.filter.pattern, osgi.http.whiteboard.filter.regex or osgi.http.whiteboard.filter.servlet need to be specified. As far as I remember, when i was using web.xml to register servlet filters, i can only either specify a url-pattern or a servlet in the filter-mapping element. These correspond to the osgi.http.whiteboard.filter.pattern and osgi.http.whiteboard.filter.servlet attribute so my take is that the whiteboard implementation pass the values of these attributes to the servlet container as is. What about the osgi.http.whiteboard.filter.regex? Since the servlet spec does not have this, would the whiteboard impl need to convert the regex to some filter pattern before passing it to the servlet container? Does paxweb support registering servlet filter with osgi.http.whiteboard.filter.regex?

Thai

Grzegorz Grzybek

unread,
Sep 10, 2019, 4:55:46 AM9/10/19
to op...@googlegroups.com
Hello

czw., 15 sie 2019 o 15:58 Nhut Thai Le <nt...@castortech.com> napisał(a):
Hello,

In section 140.5 of the osgi cmpn r7, it states that either osgi.http.whiteboard.filter.pattern, osgi.http.whiteboard.filter.regex or osgi.http.whiteboard.filter.servlet need to be specified. As far as I remember, when i was using web.xml to register servlet filters, i can only either specify a url-pattern or a servlet in the filter-mapping element. These correspond to the osgi.http.whiteboard.filter.pattern and osgi.http.whiteboard.filter.servlet attribute so my take is that the whiteboard implementation pass the values of these attributes to the servlet container as is. What about the osgi.http.whiteboard.filter.regex? Since the servlet spec does not have this, would the whiteboard impl need to convert the regex to some filter pattern before passing it to the servlet container? Does paxweb support registering servlet filter with osgi.http.whiteboard.filter.regex?

Probably we should involve some creativity here. OSGi CMPN R7 is not yet implemented in PAX-WEB (see https://ops4j1.jira.com/browse/PAXWEB-1181 and https://ops4j1.jira.com/browse/PAXWEB-1190). Even R6 still needs some polishing (with respect to contexts and selectors for example).

As Camel developers say - we love contributions ;)

regards
Grzegorz Grzybek
 

Thai

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
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 ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/15b9ec46-a1e0-435f-a031-2c1657cf33b9%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages