Thanks Thiago. That makes sense. On Mon, Jun 29, 2009 at 2:44 PM, haipeng du <[email protected]> wrote:
> Thanks for your reply. As I understand, I do no need to create such service > from my module class. There is one tapestry service called > IgnoredPathsFilter already. Also, from url: > http://tapestry.apache.org/tapestry5.1/guide/conf.html , it does not talk > about to create such service when I have > contributeIgnoredPathsFilter(Configuration<String> > > configuration); > Thanks. > > > On Mon, Jun 29, 2009 at 1:15 PM, nille hammer > <[email protected]> wrote: > >> Hi Haipeng, >> >> > but this one is not called: >> > public static void contributeIgnoredPathsFilter(Configuration<String> >> > configuration) >> > { >> > configuration.add("/dwr/.*"); >> > configuration.add("/scripts/.*"); >> > configuration.add("/logout"); >> > >> > } >> The contribution method is called by a builder method for a service that >> accepts your configuration as method parameter. I assume you want to build a >> service that implements "RequestFilter". So do you have sth. like the >> following in your module class? >> >> public RequestFilter buildIgnoredPathsFilter(final Collection<String> >> contributions) { >> return new IgnoredPathsFilter(contributions); >> } >> >> Regards, nillehammer >> >> == >> http://www.winfonet.eu >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Haipeng Du > Salt Lake City > -- Haipeng Du Salt Lake City
