Of course, commons-httpclient should be an *optional* dependency. If you use WebDav, it is not mandatory because WebDav depends on it. But for basic HTTP stuff, it should still be optional and fall back to using URL.openConnection(). When commons-httpclient is available, it should give you some extra functionality, that's all. If you are attempting to grab something via an HTTP URL and VFS bombs out because it doesn't have commons-httpclient in the classpath, I think that should be reported as a bug. Maybe Mario can verify this?

Jake

At 12:05 PM 12/29/2005 +0200, you wrote:
>Yes, you need to include the Commons HttpClient library. Please see the list
>of dependencies here: http://jakarta.apache.org/commons/vfs/download.html
>
>Regards,
>Robert
>
>On 12/29/05, ¶¡î£ <[EMAIL PROTECTED]> wrote:
>>
>>
>> yeah, u'r right!
>>
>> I must include the common httpclient if I want to user vfs?
>>
>>
>>
>>
>> -----ԭʼÓʼþ-----
>> ·¢¼þÈË: Robert Enyedi [mailto:[EMAIL PROTECTED]
>> ·¢ËÍʱ¼ä: 2005Äê12ÔÂ29ÈÕ 17:38
>> ÊÕ¼þÈË: Jakarta Commons Users List
>> Ö÷Ìâ: Re: vfs question
>>
>>
>> Hi,
>>
>> Both org.apache.commons.httpclient.URIException and import
>> org.apache.commons.httpclient.util.URIUtil are used by the URLFileName
>> class. And yes, VFS has a dependency on the Commons HttpClient library.
>> Was
>> this your question?
>>
>> Regards,
>> Robert
>>
>> On 12/29/05, ?? <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > any body use vfs?
>> >
>> > I meet a question?
>> >
>> > in  org.apache.commons.vfs.provider.URLFileName ;
>> >
>> > import org.apache.commons.httpclient.URIException;
>> ???????why?
>> > import org.apache.commons.httpclient.util.URIUtil
>> > ;                  ???????why?
>> > import org.apache.commons.vfs.FileName;
>> > import org.apache.commons.vfs.FileSystemException;
>> > import org.apache.commons.vfs.FileType;
>> >
>> >
>> >
>> >
>> > if the class like this.it's depended on Commons Httpclient.
>> >
>> >
>> > Is there any question here?
>> >
>> >
>> >
>> >
>>
>****************************************************************************
>****************************************************
>> > The information in this email is confidential and may be legally
>> > privileged. If you have received this email in error or are
>> > not the intended recipient, please immediately notify the sender and
>> > delete this message from your computer. Any use, distribution,
>> > or copying of this email other than by the intended recipient is
>> strictly
>> > prohibited. All messages sent to and from us may be
>> > monitored to ensure compliance with internal policies and to protect our
>> > business.
>> > Emails are not secure and cannot be guaranteed to be error free as they
>> > can be intercepted, amended, lost or destroyed,
>> > or contain viruses. Anyone who communicates with us by email is taken to
>> > accept these risks.
>> >
>> > ÊÕ·¢ÓʼþÕßÇë×¢Ó⣺
>> >
>±¾Óʼþº¬±£ÃÜÐÅÏ¢£¬ÈôÎóÊÕ±¾Óʼþ£¬ÇëÎñ±ØÍ¨Öª·¢ËÍÈ˲¢Ö±½Óɾȥ£¬²»µÃʹÓᢴ«²¥»ò
>¸´ÖƱ¾Óʼþ¡£
>> >
>½ø³öÓʼþ¾ùÊܵ½±¾¹«Ë¾ºÏ¹æ¼à¿Ø¡£Óʼþ¿ÉÄÜ·¢Éú±»½ØÁô¡¢±»Ð޸ġ¢¶ªÊ§¡¢±»ÆÆ»µ»ò°üº¬
>¼ÆËã»ú²¡¶¾µÈ²»°²È«Çé¿ö¡£
>> >
>> >
>>
>****************************************************************************
>****************************************************
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>>
>****************************************************************************
>****************************************************
>> The information in this email is confidential and may be legally
>> privileged. If you have received this email in error or are
>> not the intended recipient, please immediately notify the sender and
>> delete this message from your computer. Any use, distribution,
>> or copying of this email other than by the intended recipient is strictly
>> prohibited. All messages sent to and from us may be
>> monitored to ensure compliance with internal policies and to protect our
>> business.
>> Emails are not secure and cannot be guaranteed to be error free as they
>> can be intercepted, amended, lost or destroyed,
>> or contain viruses. Anyone who communicates with us by email is taken to
>> accept these risks.
>>
>> ÊÕ·¢ÓʼþÕßÇë×¢Ó⣺
>>
>±¾Óʼþº¬±£ÃÜÐÅÏ¢£¬ÈôÎóÊÕ±¾Óʼþ£¬ÇëÎñ±ØÍ¨Öª·¢ËÍÈ˲¢Ö±½Óɾȥ£¬²»µÃʹÓᢴ«²¥»ò
>¸´ÖƱ¾Óʼþ¡£
>>
>½ø³öÓʼþ¾ùÊܵ½±¾¹«Ë¾ºÏ¹æ¼à¿Ø¡£Óʼþ¿ÉÄÜ·¢Éú±»½ØÁô¡¢±»Ð޸ġ¢¶ªÊ§¡¢±»ÆÆ»µ»ò°üº¬
>¼ÆËã»ú²¡¶¾µÈ²»°²È«Çé¿ö¡£
>>
>>
>****************************************************************************
>****************************************************
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to