Thanks Sameera, will try. Does HttpService is published as a OSGI service? I assume I can get it though scr annotations. --Srinath
On Fri, Sep 4, 2009 at 11:35 PM, Sameera Jayasoma<[email protected]> wrote: > Hi Srinath, > > Equinox does support ServletFilters. We have used this functionality in > Mashup. Following is a sample code snippet. > > javax.servlet.Filter myFilter = new MyFilter(); > FilterServletAdaptor servletAdaptor = new > FilterServletAdaptor(myFilter, null, myServlet); > httpService.registerServlet("/myContextPath", servletAdaptor, > null, defaultHttpContext); > > First get an instance of the HttpService, may be using a DS component and > then register the FilterServletAdapter. > > Thanks > Sameera > > On Fri, Sep 4, 2009 at 7:27 AM, Srinath Perera <[email protected]> wrote: >> >> Hi All; >> >> I am having trouble integrating Solr because it depends on a >> ServeltFilter for functionality (for basic functionality, not for >> security). However, AFAIK, carbon servelt support (think culprit is >> equinox) does not support filters. >> >> Right now we support some level of filtering through hard coding >> filter logic in to "CarbonSecuredHttpContext" (Please have a look at >> the CarbonSecuredHttpContext.java, you will see what I mean). IMHO >> this is a very bad way to do it, and it negates the advantages of >> carbon by requiring us to go and change the >> CarbonSecuredHttpContext.java when we add a bundle that need filtering >> (e.g. solr integration need a change). >> >> Is it possible to support servelt filters (or equivalent) in the near >> future? Do anybody know a way to work around this? >> >> Thanks >> Srinath >> >> >> -- >> ============================ >> Srinath Perera, Ph.D. >> WSO2 Inc. http://wso2.com >> Blog: http://srinathsview.blogspot.com/ >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- ============================ Srinath Perera, Ph.D. WSO2 Inc. http://wso2.com Blog: http://srinathsview.blogspot.com/ _______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
