commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Vladimirov" <vlser...@gmail.com>
Subject Re: Specifying options to FTP etc..
Date Wed, 29 Aug 2007 21:56:13 GMT
Good day, Mario.

+1 vote from me.
This is very common case, when deleveloper allows user to specify URI only.

More over, this setting is file-specific (or, more precisely, site
specific), so it's not always correct to set them up using
ConfigurationBuilder.

Another example is to add "classloader" parameter to ResourceFileSystem's
URIs, which specifies classloader to use: "thread" for current thread one,
"vfs" for ResourceFileSystem.class.getClassLoader() or "system" for system
class loader.

-- 
Bets regards,
Sergey.

2007/8/29, Asankha C. Perera <asankha@wso2.com>:
>
> Hi Mario
>
> > It is possible through the *FileSystemConfigurationBuilder stuff only.
> >
> Unfortunately this does not work for me, as I can only specify a VFS
> URI. So VFS needs to figure out and make it happen in my case
> >>
> ftp://myusername:mypassword@somehost/pub/downloads/somefile.tgz?option=value
> >>
> >>
> >> Have I missed something to get passive mode specified via the URI or
> >> can we assume the above to be a good solution?
> >>
> >
> > I don't think that adding them as option to the URI is a good idea as
> > the URI parameters are meant to be processed by the destination (e.g. an
> > http server) and not by VFS.
> >
> I don't quite agree with this - this may be the common case for HTTP,
> but the URI spec does not enforce it.
> /
> /_http://www.w3.org/Addressing/URL/4_URI_Recommentations.html:_/
> "The query string represents some operation applied to the object, but
> this specification gives no common syntax or semantics for it. In
> practice the syntax and sematics may depend on the scheme and may even
> on the base URI."/
>
> Also there are IRI schemes that specify such parameters already. Ref the
> JMS scheme here
> <
> http://mail-archives.apache.org/mod_mbox/ws-axis-dev/200701.mbox/raw/%3C80A43FC052CE3949A327527DCD5D6B27020FB65C@MAIL01.bedford.progress.com%3E/2
> >
>
> thanks
> asankha
>



-- 
Sergey Vladimirov

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message