[Yanel-dev] Using query strings to match [WAS: Re: [HEADS UP] ResourceManager and ResourceConfigurationMap class may die soon; resource-types' URL matching (e.g. on request parameters)

Bettina Messmer bettina.messmer at gmx.ch
Thu Jul 21 15:38:06 CEST 2011


Hi,

As we discussed offline, the problem seems to be that toolbar_v2.css does not work with IE9, whereas toolbar.css used by "from-scratch-realm"-Toolbar does also work with IE9. We keep investigating, what might be the problem of this particular css.

greets,

Bettina




-------- Original-Nachricht --------
> Datum: Wed, 20 Jul 2011 15:26:11 +0200
> Von: Michael Wechner <michael.wechner at wyona.com>
> An: yanel-development at wyona.com
> Betreff: [Yanel-dev] Using query strings to match [WAS: Re: [HEADS UP] ResourceManager and	ResourceConfigurationMap class may die soon; resource-types\' URL matching (e.g. on request parameters)

> Hi
> 
> Am 18.07.11 14:41, schrieb Michael Wechner:
> > Hi
> >
> > I have implemented this patch of Guillaume, whereas did some 
> > modification to it.
> >
> > The next steps are:
> >
> > - Develop another matcher implementation which allows to use query 
> > strings for mapping
> 
> I have developed another matcher which allows now to use query strings
> 
> src/core/java/org/wyona/yanel/core/ResourceConfigurationMapV2.java
> 
> It's not perfect yet, but for playing it should work fine. One currently 
> has to enable it by changing:
> 
> Index: src/core/java/org/wyona/yanel/core/ResourceManager.java
> ===================================================================
> --- src/core/java/org/wyona/yanel/core/ResourceManager.java    (revision 
> 59475)
> +++ src/core/java/org/wyona/yanel/core/ResourceManager.java    (working 
> copy)
> @@ -47,8 +47,8 @@
>        */
>       public ResourceManager() {
>           rtRegistry = new ResourceTypeRegistry();
> -        resourceTypeMatcher = new ResourceTypeDefaultMatcher();
> -        // TODO: Make resource matcher configurable: 
> resourceTypeMatcher = new ResourceTypeMatcherV1ImplV2();
> +        //resourceTypeMatcher = new ResourceTypeDefaultMatcher();
> +        resourceTypeMatcher = new ResourceTypeMatcherV1ImplV2();
>       }
> 
> One can dow now stuff like for example:
> 
> <matcher pattern="/**.jpg?scale=mobile"
> rcpath="/scale-image_yanel-rc.xml"/>
> 
> whereas for requests/URLs containing query strings, but the pattern 
> contains no question mark the matching
> should still work, which means it is backwards compatible.
> 
> We need to do more testing before enabling this new version for good (or 
> as mentioning below, make it at least configurable, such that one can 
> easily switch back).
> 
> Also we need to discuss about POST parameters, etc. Also see previous 
> threads:
> 
> http://lists.wyona.org/pipermail/yanel-development/2009-December/004235.html
> http://lists.wyona.org/pipermail/yanel-development/2009-December/004194.html
> 
> Also we can think about further re-factoring of
> 
> http://lists.wyona.org/pipermail/yanel-development/2009-July/003844.html
> 
> whereas we quickly get into discussions re access control as well ;-)
> 
> Thanks
> 
> Michael
> 
> > - Make matcher configurable per yanel and per realm
> >
> 
> -- 
> Yanel-development mailing list Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the Yanel-development mailing list