We resorted to creating our own TargetResolver (in 0.3.0, but don't know how this translates to 0.4.0) If you are using the GData scheme, then - once you get into boolean arithmetic on Categories - you will need to do the same eventually...
Ditto for batching, etc.
Cheers,
-- Chris

On May 1, 2008, at 9:31 AM, Remy Gendron wrote:

Hello all,

My Regex is not good enough to interpret the intricacies of the Route class internals.

I have chosen the GDATA URI pattern (…/-/cat1/cat2/cat3/etc) to target categories.

It works great for targeting one category, but fails with multiple categories. The second unit test below fails:

    @Test
    public void testRouteSingleCategory() {
Route r = new Route("test", "/ atom/:collection/-/:categories");

        assertTrue(r.match("/atom/movies/-/scifi"));
    }

    @Test
    public void testRouteMultipleCategories() {
Route r = new Route("test", "/ atom/:collection/-/:categories");

        assertTrue(r.match("/atom/movies/-/scifi/drama"));
    }

Can a regex guru explain in plain english the match pattern used in the Route class?

Thanks,

Rémy



Courriel:            [EMAIL PROTECTED]
Cellulaire:          418 809-8585
Site Web:          http://arrova.ca
Liste:                http://mail.arrova.ca/mailman/listinfo/dev-list_arrova.ca


Reply via email to