You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by hrjk <ha...@zeniitti.net> on 2006/06/28 07:38:16 UTC
Common VFS new features
Hi.
I have a few questions relating to new features of VFS. If you have any
assumptions about release time of following features, please share them.
:)
1. When will VFS support defining parameters for HTTP connection? (user
agent, authentication etc)
2. The JNDI support for VFS is in todo items also. When will this be
implemented? I guess this will support mapping a network drive etc?
BR,
-hrjk
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [vfs] Common VFS new features
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi hrjk,
> These properties are set for HttpURLConnection
> with following style:
>
> connection.setRequestProperty( "Authorization", "...");
> connection.setRequestProperty( "User-Agent", "...");
>
Ok, but the reason I asked is, that the *FileSytemOptionsBuilder stuff
is type safe and shows you EXACTLY which options are available. There is
nothing such general to set key/value pairs, so we have to write stuff like:
setAuthorization(String)
setUserAgent(String)
The reason for this is, that I want to know at compile time if I did
anything right, and that IDEs help in coding.
For the cases were we have to process a configuration file or stuff from
ANT we use the DelegatingFileSystemOptionsBuilder which takes key/value
pairs and use reflection to convert the value to the appropriate type.
> By the way, I can't seem to access any builds in
> http://people.apache.org/builds/jakarta-commons/nightly/commons-vfs/.
>
Yea, unhappily our nightly build system is out of order currently.
Hopefully it will work again soon. For now, you have to build it
yourself from svn - not that hard.
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [vfs] Common VFS new features
Posted by hrjk <ha...@zeniitti.net>.
Hi.
As far as we go, we currently need an ability to set request properties
for connection over http. These properties are set for HttpURLConnection
with following style:
connection.setRequestProperty( "Authorization", "...");
connection.setRequestProperty( "User-Agent", "...");
I don't really think this requires lot of changes to VFS.
By the way, I can't seem to access any builds in
http://people.apache.org/builds/jakarta-commons/nightly/commons-vfs/.
-hrjk
> Hi hrjk,
>
> please prefix your post with [vfs], else chances are good my mailfilter
> wouldnt get them - and its common to do so on such umbrella lists.
>> If you have any
>> assumptions about release time of following features, please share them.
>>
> As always with open source, we (I) cant promise anything.
>
>> 1. When will VFS support defining parameters for HTTP connection? (user
>> agent, authentication etc)
>>
> This shouldn't be too hard to do, just some additional stuff in
> HttpConfigurationOptionsBuilder. Did you ever considered to contribute a
> patch? *hint hint* ;-)
> At least please provide a complete listing of stuff you need.
>
>> 2. The JNDI support for VFS is in todo items also. When will this be
>> implemented? I guess this will support mapping a network drive etc?
>>
> JNDI is "Java Naming and Directory Interface" - something like a VFS
> for dummies ;-) - no - just kidding.
> I think its common use case is to access an LDAP server.
> Having a JNDI provider in VFS means that you are able to access data on
> this LDAP server.
>
> So sorry, no, no way to map a network drive.
>
> For this to work we need JNI (Java Native Interface) and some native
> code for the underlaying OS. I have no plans to do such a thing. On the
> other hand, I thought about preparing a proposal for a JNI interface for
> VFS to do things like changing file attributes, maintaining its ACL and
> so on.
> Maybe a student will work on it for the next Google Summer Of Code - if
> there is one for sure.
>
> Ciao,
> Mario
>
> Ciao,
> Mario
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [vfs] Common VFS new features
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi hrjk,
please prefix your post with [vfs], else chances are good my mailfilter
wouldnt get them - and its common to do so on such umbrella lists.
> If you have any
> assumptions about release time of following features, please share them.
>
As always with open source, we (I) cant promise anything.
> 1. When will VFS support defining parameters for HTTP connection? (user
> agent, authentication etc)
>
This shouldn't be too hard to do, just some additional stuff in
HttpConfigurationOptionsBuilder. Did you ever considered to contribute a
patch? *hint hint* ;-)
At least please provide a complete listing of stuff you need.
> 2. The JNDI support for VFS is in todo items also. When will this be
> implemented? I guess this will support mapping a network drive etc?
>
JNDI is "Java Naming and Directory Interface" - something like a VFS
for dummies ;-) - no - just kidding.
I think its common use case is to access an LDAP server.
Having a JNDI provider in VFS means that you are able to access data on
this LDAP server.
So sorry, no, no way to map a network drive.
For this to work we need JNI (Java Native Interface) and some native
code for the underlaying OS. I have no plans to do such a thing. On the
other hand, I thought about preparing a proposal for a JNI interface for
VFS to do things like changing file attributes, maintaining its ACL and
so on.
Maybe a student will work on it for the next Google Summer Of Code - if
there is one for sure.
Ciao,
Mario
Ciao,
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org