Salut,
[cc-ingthe grizzly users list)
foo_at_bar.com wrote:
> A new comment has been posted on your blog Jean-Francois Arcand's Blog, on entry #10977 (Extending the Grizzly HTTP Runtime part V: Programatically configuring Servlet and GrizzlyAdapter).
>
>
> View this comment: <http://weblogs.java.net/blog/jfarcand/archive/2009/01/extending_the_g_5.html>
> Edit this comment: <http://weblogs.java.net/mt/mt.cgi?__mode=view&blog_id=258&_type=comment&id=52892>
>
> Name: braghest
>
> When adding filters is it also possible to set a filter mapping and the dispatcher types? I need this and it can be done with Jetty.
I would have tough that since ServletAdapter are per Servlet, then the
Filter that you add to the ServletAdapter can be mapped automatically.
Would doing:
GrizzlyWebServer ws = new GrizzlyWebServer();
ServletAdapter sa = new ServletAdapter();
...
ws.addGrizzlyAdapter(sa, new String[] {"mapping1", "mapping2", "mapping3"});
works for you (all the mapping done when you are adding the GrizzlyAdapter)?
https://grizzly.dev.java.net/issues/
If not, juts file an REF here and I will add a specific API for filters/
Thanks!
-- Jeanfrancois
>