prashantid...@gmail.com a écrit :
> Hi All,
>
> I am new to Restlets even after working for around last 8 months on restlets. 
> :-)
>
> I am facing a problem with my application.
>
> Description is as follows:
>
> In my application class I have two REST URIs as given below:
>
> (1st) "/language/{var1}/{var2}/"
> (2nd) "/language/{var1}/{var2}/java/"
>
> I have also set Default matching mode of the router to MODE_EQUALS.
>
> Now, if I test second URI with not providing value for one of the varibales 
> e.g.
> /language/12345/java/ 
> (Note: value for var1 is missing in this URI)
>
> My Router is matching this URI with first URI template and executes restlet 
> class assgined to first URI i.e "/language/{var1}/{var2}/"
>
> Ideally if i have set matching mode to MODE_EQUALS for router it should show 
> a message "server has not found anything matching requested URI" with 
> response code "404".
>
> Please help me coming out of this problem. I have also tries with changin 
> type of default varibale but no luck.
>
> Thanks in advance.
> Prashant
>
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=989509

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=989587

Reply via email to