You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Yannick PIERSON <pi...@gmail.com> on 2008/05/22 11:27:36 UTC
webfolder and JFileChooser
Hi,
I'm using httpClient in order to access to a protected webfolder. I'm able
to get files thanks this library. But now I would like to access to this
webfolder with a JFileChooser. Unfortunately it seems to be impossible. Have
you any idea or solution?
Thanks
Yannick
Re: webfolder and JFileChooser
Posted by Yannick PIERSON <pi...@gmail.com>.
Hi,
Thanks for your answer, but I have found a library which is usefull to do
that : VFSJFileChooser-0.0.2
All about this project can be found there :
http://vfsjfilechooser.sourceforge.net/index.html
More information at http://commons.apache.org/vfs/index.html
Yannick
2008/5/28 Brian Johnson <br...@u.washington.edu>:
> Yannick,
>
> I have not seen a direct response, so perhaps this partial response will
> help.
>
> I have had the same problem. I do not believe there is a pure-java
> solution.
> I ended up using a customized version of ClientHttpRequest by Vlad
> Patryshev
> for http transport, but I think you could do this with HTTPClient as
> well...
>
> In the folder on the (apache) web server from which I wish to open files, I
> place
> a small php script that returns a return-delimited list of file names (it
> removes
> its own name from this list). My applet does a GET on the URL of this
> script,
> parses the return string and uses it to make a JOptionPane popup list of
> files.
> With the file name I am able to use URL().openStream() to read the input
> file.
>
> The client class supports file uploads too. Coupled with another php script
> on
> the server, applets gain read & save functionality on the server.
>
> From the web server's point of view this is business as usual. The folder
> could
> easily be protected via a .htaccess file, and the applet could be modified
> to
> submit an id & pw if appropriate.
>
> From comments by others on this list I think this is a fairly common
> strategy,
> but there may be others...
>
> -b.johnson, dept of architecture, university of washington, seattle
>
>
>
> On May 22, 2008, at 2:27 AM, Yannick PIERSON wrote:
>
> Hi,
>>
>> I'm using httpClient in order to access to a protected webfolder. I'm able
>> to get files thanks this library. But now I would like to access to this
>> webfolder with a JFileChooser. Unfortunately it seems to be impossible.
>> Have
>> you any idea or solution?
>>
>> Thanks
>>
>> Yannick
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
Re: webfolder and JFileChooser
Posted by Brian Johnson <br...@u.washington.edu>.
Yannick,
I have not seen a direct response, so perhaps this partial response
will help.
I have had the same problem. I do not believe there is a pure-java
solution.
I ended up using a customized version of ClientHttpRequest by Vlad
Patryshev
for http transport, but I think you could do this with HTTPClient as
well...
In the folder on the (apache) web server from which I wish to open
files, I place
a small php script that returns a return-delimited list of file names
(it removes
its own name from this list). My applet does a GET on the URL of this
script,
parses the return string and uses it to make a JOptionPane popup list
of files.
With the file name I am able to use URL().openStream() to read the
input file.
The client class supports file uploads too. Coupled with another php
script on
the server, applets gain read & save functionality on the server.
From the web server's point of view this is business as usual. The
folder could
easily be protected via a .htaccess file, and the applet could be
modified to
submit an id & pw if appropriate.
From comments by others on this list I think this is a fairly common
strategy,
but there may be others...
-b.johnson, dept of architecture, university of washington, seattle
On May 22, 2008, at 2:27 AM, Yannick PIERSON wrote:
> Hi,
>
> I'm using httpClient in order to access to a protected webfolder.
> I'm able
> to get files thanks this library. But now I would like to access to
> this
> webfolder with a JFileChooser. Unfortunately it seems to be
> impossible. Have
> you any idea or solution?
>
> Thanks
>
> Yannick
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org