hi,
when I try to create a file object with "http://www.somehost.com/", VFS
fails when the host is unreachable (e.g. when not connected to internet)
this is because org.apache.commons.vfs.provider.http.HttpFileSystem has
a constructor that has an argument HttpClient, whereas it should be an
HttpClientFactory
the HttpClient should be resolved only when required :
protected HttpClient getClient()
{
if ( this.client == null ) {
this.client = clientFactory.createConnection(...);
}
return client;
}
--
Cordialement,
///
(. .)
--------ooO--(_)--Ooo--------
| Philippe Poulard |
-----------------------------
http://reflex.gforge.inria.fr/
Have the RefleX !
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]