Running a servlet filter

7 views
Skip to first unread message

Toby Weston

unread,
Oct 22, 2014, 3:01:02 AM10/22/14
to utter...@googlegroups.com

I could have sworn I've seen this already in UI, but if I want to run an existing servlet filter in an embedded UI container, would I use a decorator? are decorators the analog to servlet filters or are they something to do with templating/sitemesh? If not decorators, would I use a HttpHandler and manually "decorate" my filter having somehow initialised it beforehand?

Thanks

Daniel Worthington-Bodart

unread,
Oct 22, 2014, 4:20:18 AM10/22/14
to utterlyidle
Stu and I did something to allow a Servlet to be a HttpHandler but it was not pretty or nice. I.e it was a horrible hack that hardly worked. Unless Stu open sourced it I think it just got deleted as soon as the we finished migrating to UI.

UI working as a Servlet is of course supported.

At another client ;) I patched the scala library Unfiltered to go direct to HttpHandlers which made test Unfiltered possible in memory.



On 22 October 2014 08:01, Toby Weston <toby....@gmail.com> wrote:

I could have sworn I've seen this already in UI, but if I want to run an existing servlet filter in an embedded UI container, would I use a decorator? are decorators the analog to servlet filters or are they something to do with templating/sitemesh? If not decorators, would I use a HttpHandler and manually "decorate" my filter having somehow initialised it beforehand?

Thanks

--
You received this message because you are subscribed to the Google Groups "utterlyidle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to utterlyidle...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages