From: "Yuppie" <schubbe@web.de>
Quick?
Yeah, yeah. I was fast once I actually did it. :-)
Please be careful with method names that might already be in use in some products. Google says Silva uses a getVirtualRoot() method.
And EasyPublisher uses all of these already.
Why not using REQUEST variables?
Because it would be wrong, ugly, inconsistent with GetPhysicalPath and/or complicated to implement? :-) To explain them I'll use Evans examples (without testing so I could be wrong): http://localhost:8080/temp_folder/test getVirtualRoot(): ('',) getVirtualPath(): ('', 'temp_folder', 'test') getPhysicalPath(): ('', 'temp_folder', 'test') http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/te... getVirtualRoot(): ('',) getVirtualPath(): ('', 'temp_folder', 'test') getPhysicalPath(): ('', 'temp_folder', 'test') http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/Vi... getVirtualRoot(): ('', 'temp_folder') getVirtualPath(): ('', 'test') getPhysicalPath(): ('', 'temp_folder', 'test') http://localhost:8080/VirtualHostBase/http/www.example.com:80/temp_folder/Vi... getVirtualRoot(): ('', 'temp_folder') getVirtualPath(): ('', 'test') getPhysicalPath(): ('', 'temp_folder', 'test') I think.... :-)