RE: uriPattern exactness

2008-10-22 Thread Jerome Louvel
://www.restlet.org/ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com/ http://www.noelios.com _ De : Erik Beeson [mailto:[EMAIL PROTECTED] Envoyé : mardi 21 octobre 2008 00:23 À : discuss@restlet.tigris.org Objet : Re: uriPattern exactness In what

Re: uriPattern exactness

2008-10-21 Thread Thierry Boileau
, October 17, 2008 4:02 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness Hi Cliff, In combination with MODE_EQUALS, you could also add a variable for your extensions like: /foos/{foo}/bar.{ext}. That could reduce the number of alternative routes you would have to attach. Best

RE: uriPattern exactness

2008-10-21 Thread Cliff Binstock
: Re: uriPattern exactness In what scenario (other than maybe development) do your routes change at runtime? --Erik On Mon, Oct 20, 2008 at 2:44 PM, Cliff Binstock [EMAIL PROTECTED] wrote: Jérôme, I thought of another reason why it would be *really nice* to know the matching URI pattern

RE: uriPattern exactness

2008-10-21 Thread Cliff Binstock
, October 21, 2008 12:26 AM To: discuss@restlet.tigris.org Subject: Re: uriPattern exactness Hi Cliff, as a workaround, you can derive the Router class and override the getNext method. It will give you access to the route, and then the matched pattern: Router router = new Router

RE: uriPattern exactness

2008-10-20 Thread Cliff Binstock
To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness Hi Cliff, In combination with MODE_EQUALS, you could also add a variable for your extensions like: /foos/{foo}/bar.{ext}. That could reduce the number of alternative routes you would have to attach. Best regards

Re: uriPattern exactness

2008-10-20 Thread Erik Beeson
a very flexible default handler. Cliff Binstock Coyote Reporting -Original Message- From: Jerome Louvel [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 4:02 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness Hi Cliff, In combination

RE: uriPattern exactness

2008-10-18 Thread Jerome Louvel
: Re: uriPattern exactness On Friday 2008.10.17, at 04:01 , Jerome Louvel wrote: [...] In combination with MODE_EQUALS, you could also add a variable for your extensions like: /foos/{foo}/bar.{ext}. That could reduce the number of alternative routes you would have to attach. Yes

Re: uriPattern exactness

2008-10-17 Thread Thierry Boileau
[mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 11:37 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness In the message Re: uriPattern exactness, dated 2008-10-16, Cliff Binstock wrote: P.S. What is worse (maybe very confusing) is that this might match too: /foo

RE: uriPattern exactness

2008-10-17 Thread Jerome Louvel
Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Cliff Binstock [mailto:[EMAIL PROTECTED] Envoye : vendredi 17 octobre 2008 01:28 A : discuss@restlet.tigris.org Objet : RE: uriPattern exactness Aron, Thanks, I didn't realize this was here. This would

Re: uriPattern exactness

2008-10-17 Thread John D. Mitchell
On Friday 2008.10.17, at 04:01 , Jerome Louvel wrote: [...] In combination with MODE_EQUALS, you could also add a variable for your extensions like: /foos/{foo}/bar.{ext}. That could reduce the number of alternative routes you would have to attach. Yes and no. I use that trick but I still

RE: uriPattern exactness

2008-10-17 Thread Cliff Binstock
John and Jérôme, Thanks much, this is *exactly* what I need! Cliff -Original Message- From: John D. Mitchell [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2008 7:54 AM To: discuss@restlet.tigris.org Subject: Re: uriPattern exactness On Friday 2008.10.17, at 04:01

Re: uriPattern exactness

2008-10-16 Thread Thierry Boileau
Hi Cliff, I'm sorry, but I think I miss your question. ;) What do you want to do? What kind of entity will handle the data: the exact matched pattern for /foos/myFoo/barlksjfljj.xml ? Best regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org http://www.restlet.org/

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
, but probably not ./barlksjfljj.xml. Thanks. Cliff Binstock Coyote Reporting _ From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 2:27 AM To: discuss@restlet.tigris.org Subject: Re: uriPattern exactness Hi Cliff, I'm sorry, but I think I miss your

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
: Thursday, October 16, 2008 8:54 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness Thierry, Actually what I want to do, sometimes, is abort the processing.(and probably return a Not Found error). Right now, the caller can use a somewhat garbage uri, and the uriPattern

RE: uriPattern exactness

2008-10-16 Thread Cliff Binstock
router.attach(). I was hoping to do some fuzzy enforcement in a base Resource class. Cliff Binstock Coyote Reporting -Original Message- From: Aron Roberts [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2008 11:37 AM To: discuss@restlet.tigris.org Subject: RE: uriPattern exactness

uriPattern exactness

2008-10-15 Thread Cliff Binstock
I was wondering if there is some trick way to find the exact matched pattern. Specifically, I am seeing this (somewhat logical) behavior. If the uriPattern is /foos/{foo}/bar This of course matches something like /foos/myFoo/barlksjfljj.xml What I want is: If I type in