Re: adding an internal filter

2014-09-18 Thread Romain Manni-Bucau
changed to: private void addFilterConfig(final Context context, final FilterDef filterDef) { // hack to force filter to get a config otherwise it is ignored in the http routing try { final Constructor cons = ApplicationFilterConfig.class.getDeclaredConstructor(Context.c

Re: adding an internal filter

2014-09-16 Thread Romain Manni-Bucau
2014-09-16 15:16 GMT+02:00 Konstantin Kolinko : > 2014-09-15 23:01 GMT+04:00 Romain Manni-Bucau : >> Hi guys, >> >> in TomEE I'd like to add a filter but after context filter are started >> (means filterStart() from StandardContext is called). >> > > Why? What is the use case? > we add a filter wi

Re: adding an internal filter

2014-09-16 Thread Konstantin Kolinko
2014-09-15 23:01 GMT+04:00 Romain Manni-Bucau : > Hi guys, > > in TomEE I'd like to add a filter but after context filter are started > (means filterStart() from StandardContext is called). > Why? What is the use case? You code adds filter definitions. A filter definitions just associates filter

adding an internal filter

2014-09-15 Thread Romain Manni-Bucau
Hi guys, in TomEE I'd like to add a filter but after context filter are started (means filterStart() from StandardContext is called). What I do today is: try { final Field def = StandardContext.class.getDeclaredField("filterDefs"); if (!def.isAccessible()) {