Hi Sean,

The virtual hosts are still based on regular expressions because at this
point in the routing you want to filter requests based on various
information's and use expressions such as "restlet.org|www.restlet.org" for
domain names or "http|https" for scheme names or "127.0.0.1|158.58.65.45"
for IP addresses, etc. Here the usage of URI template would not be as
powerful and flexible, IMO.

For the rest of the routing (based on Routers) URI templates are the only
mechanism now supported. I have just updated the Javadocs to explain the
VirtualHost in more details.

Best regards,
Jerome  

> -----Message d'origine-----
> De : news [mailto:[EMAIL PROTECTED] De la part de Sean Landis
> Envoyé : jeudi 8 mars 2007 23:14
> À : [email protected]
> Objet : VirtualHost JavaDoc
> 
> I noticed the javadoc for the VirtualHost class talk about 
> regular expression
> matching. Isn't URI Template matching done now?
> 
> It would also be helpful to explain what "hostRef", "resourceRef", 
> and "serverInfo" are.
> 
> Sean

Reply via email to