Hi Robert, 

Did you try to switch off the extension processing in the TunnelService? Use
TunnelService#setExtensionsTunnel(false).

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com


-----Message d'origine-----
De : Robert Binna [mailto:[email protected]] 
Envoyé : lundi 13 juillet 2009 12:46
À : [email protected]
Objet : Extension tunneling and matching route by extension

Hi,

I am developing a restlet based application and I am using the router  
restlet to dispatch to the target resources.
My problem is, that after the tunnel service  has removed the  
extension, the rule that matches the url is no longer applicable.

The code that is used is:

router.attach("/js/", new Directory(context, directory));
router.attach("/js/lang.{lang}.js", LanguageResource.class); //causes  
trouble
Route route = router.attach("/js/{relurl}.html",  
HTMLResource.class); // matching on relurl is done via TYPE_URI_ALL,  
causes trouble too

Is there a way to force the routing to respect the original url, and  
not the stripped one?

Kind regards,
                   Robert

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

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

Reply via email to