Processes the given URI. If the given URI is not an FTP URI, then
this method does nothing. Otherwise an attempt is made to connect
to the FTP server.
If the connection is successful, an attempt will be made to CD to
the path specified in the URI. If the remote CD command succeeds,
then it is assumed that the URI represents a directory. If the
CD command fails, then it is assumed that the URI represents
a file.
For directories, the directory listing will be fetched using
the FTP LIST command, and saved to the HttpRecorder. If the
extract.from.dirs attribute is set to true, then
the files in the fetched list will be added to the curi as
extracted FTP links. (It was easier to do that here, rather
than writing a separate FTPExtractor.)
For files, the file will be fetched using the FTP RETR
command, and saved to the HttpRecorder.
All file transfers (including directory listings) occur using
Binary mode transfer. Also, the local passive transfer mode
is always used, to play well with firewalls.
Parameters: curi - the curi to process throws: InterruptedException - if the thread is interrupted duringprocessing |