Hi Tal,
The hostPort lets you restrict not only the virtual domain name served by
your virtual host, but also its port number, so you could have one separate
virtual host per port number in theory.
The resourcePort could potentially be different from the hostPort if the
HTTP request URI was provided in absolute form:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2
The serverPort is a property that restrict your virtual host to the actual
listening port of your server socket, which might be different fro the
hostPort when using port rerouting.
Best regards,
Jerome
2013/2/7 Tal Liron tal.li...@threecrickets.com
I use virtual hosts a lot, but I almost always use setResourcePort so
that applications can work on different ports. I'm wondering:
1) What is setServerPort for?
2) What is setHostPort for?
Setting either of these seems to make no different in routing incoming
requests.
The JavaDocs for VirtualHost are very lean, and could definitely use
some more detail!
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3047996
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=3071509