://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
, 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
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
, 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
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
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
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
[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
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
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
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
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/
, 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
: 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
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
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
16 matches
Mail list logo