Re: URI won't match what's attached to the router

2008-05-19 Thread Thierry Boileau
t example? Sam Bao | Software Engineer | Cerner Corporation | 816.201.8242 | [EMAIL PROTECTED] | www.cerner.com -Original Message- From: Bao,Sam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 13, 2008 10:55 AM To: discuss@restlet.tigris.org Subject: RE: Re: URI won't

RE: RE: Re: URI won't match what's attached to the router

2008-05-16 Thread Bao,Sam
Corporation | 816.201.8242 | [EMAIL PROTECTED] | www.cerner.com -Original Message- From: Bao,Sam [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:55 AM To: discuss@restlet.tigris.org Subject: RE: Re: URI won't match what's attached to the router Thanks Stephan, That had been my

URI won't match what's attached to the router

2008-05-13 Thread Bao,Sam
I've got the following resource attached to my router: Router router = new Router(getContext()); router.attach(/conditions, ConditionsResource.class); router.attach(/facts, FactsResource.class); router.attach(/risks, RisksResource.class);

Re: URI won't match what's attached to the router

2008-05-13 Thread Thierry Boileau
Hello Sam, you can update the personid variable in order to make it facultative: Route route = router.attach(/lastRiskEval/{personid}, LastRiskEvaluationResource.class); // You can use other Variable.TYPE_... Variable variable = new Variable(Variable.TYPE_ALPHA_DIGIT, , false, false);

RE: Re: URI won't match what's attached to the router

2008-05-13 Thread Bao,Sam
:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:03 AM To: discuss@restlet.tigris.org Subject: Re: URI won't match what's attached to the router Hello Sam, you can update the personid variable in order to make it facultative: Route route = router.attach(/lastRiskEval/{personid

Re: URI won't match what's attached to the router

2008-05-13 Thread Thierry Boileau
Message- From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:03 AM To: discuss@restlet.tigris.org Subject: Re: URI won't match what's attached to the router Hello Sam, you can update the personid variable in order to make it facultative: Route route = router.attach

RE: Re: URI won't match what's attached to the router

2008-05-13 Thread Bao,Sam
, May 13, 2008 10:42 AM To: discuss@restlet.tigris.org Subject: Re: URI won't match what's attached to the router Hi Sam, by default a variable is supposed to eat at least one character. In your case, the route /lastRiskEval/{personid} cannot match the URI /lastRiskEval/. Another question is what

Re: URI won't match what's attached to the router

2008-05-13 Thread Stephan Koops
. -Original Message- From: Thierry Boileau [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:42 AM To: discuss@restlet.tigris.org Subject: Re: URI won't match what's attached to the router Hi Sam, by default a variable is supposed to eat at least one character. In your case, the route

RE: Re: URI won't match what's attached to the router

2008-05-13 Thread Bao,Sam
| 816.201.8242 | [EMAIL PROTECTED] | www.cerner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 10:52 AM To: discuss@restlet.tigris.org Subject: Re: URI won't match what's attached to the router Hi Sam, you could also create a resource

Re: URI won't match what's attached to the router

2008-05-13 Thread Jerome Louvel
Hi Sam, I'm glad you got this working. lowPriority It seems that your started this new thread by replying to an email from the java.util.zip.ZipException: no current ZIP entry..Any ideas thread. It causes newsgroup clients to display your thread under the initial thread, which is not very