|
From: <jue...@we...> - 2003-07-14 13:44:46
|
I fully agree - I'll integrate it promptly. Juergen -----Original Message----- From: Rod Johnson [mailto:rod...@in...] Sent: Monday, July 14, 2003 3:37 PM To: al...@jt...; spr...@li... Subject: Re: [Springframework-developer] PathMatchingUrlHandlerMapping This is very useful functionality. Good work! Thanks, Rod ----- Original Message -----=20 From: "Alef Arendsen (JTeam)" <al...@jt...> To: <spr...@li...> Sent: Monday, July 14, 2003 2:38 PM Subject: [Springframework-developer] PathMatchingUrlHandlerMapping > Hi all, >=20 > Since I work a lot with protected resources and stuff in webapps, but = on > the other hand want to share and reuse different view across multiple > protected resources, I've implemented a somewhat more advanced > UrlHandlerMapping, one that kind of shows the behavior the Ant = patterns > functionality also has, so: >=20 > /**/view/listView.jsp for instance would both match on > /user/view/listView.jsp, but also on /admin/view/listView.jsp > /**/view/listView?.jsp for isntance would both match on > /user/view/listViewA.jsp but also on /admin/view/listViewB.jsp > /*view*.jsp for instance would both match on /view.jsp both also on > /view-employee.jsp and /detailed-view-employee.jsp >=20 > I've included the additions and modifications I needed to do. These = are > the following: >=20 > *** Addition of PathMatchingUrlHandlerMapping > This class is extending SimpleUrlHandlerMapping and overrides the > lookupHandler() method from AbstractUrlHandlerMapping > *** Modification of AbstractUrlHandlerMapping > Because from the overriden lookupHandler() method I need to be able to > inspect handlerMap property from the AbstractUrlHandlerMapping, I made > this property protected instead of private > *** Addition of PathMatchingUrlHandlerMappingTestSuite and map3.xml to > this package which is testing the PathMatchingUrlHandlerMapping >=20 > I've been running the Clover stuff and managed to get the coverage up = to > 87,2%, I hope that's up to standards for you guys? >=20 > About the pathmatching principles, they're explained in the JavaDoc of > the class itself. The algorithms are 'borrowed' from the Ant > SelectorUtils class. I've modified them to use Lists instead of = Vectors. >=20 > It would be nice if you would be able to integrate them. >=20 > Cheers, >=20 > Alef Arendsen >=20 ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |