Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

Dose FileTransferClient support proxy?

by xiaoyu1985ban » Fri Mar 20, 2009 6:10 pm

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Dose FileTransferClient support proxy?

by support2 » Fri Mar 20, 2009 8:35 pm

no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Mon Mar 23, 2009 11:13 am

no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Mon Mar 23, 2009 12:15 pm

no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Mon Mar 23, 2009 12:49 pm

hai!
I have just checked the source, the methods initSOCKS and initSOCKSAuthentication belong to FTPClient ,but the FTPClient member in class FileTransferClient is private ,not protocted.In class FileTransferClient we don't have a method like getFTPClient() through which we can get the FTPClient Object. I have added it myself. Also I advise you to add a method like this in your next edition or rewrite FileTransferClient not using FTPClient
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Mon Mar 23, 2009 8:55 pm

These are static methods so you don't need an FTPClient instance.

Just call

FTPClient.initSOCKS(...)

etc
no avatar
User

xiaoyu1985ban

Posts

30

Joined

Wed Mar 18, 2009 1:31 am

by xiaoyu1985ban » Tue Mar 24, 2009 11:34 am

I have got it after I read the source code
Any way,Thanks a lot!!

Who is online

Users browsing this forum: No registered users and 15 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign