commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38309] New: - [net] How to implent FTPS extending FTPClient, from a diferente package...
Date Wed, 18 Jan 2006 15:00:11 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38309>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38309

           Summary: [net] How to implent FTPS extending FTPClient, from a
                    diferente package...
           Product: Commons
           Version: 1.4 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Net
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: josejuan.montiel@gmail.com


Hi everybody, I'm Jose from Spain.

I make an implement of FTPS: using
http://sourceforge.net/projects/ufsc implementation (which use a new
class, created by UFSC, org.apache.commons.net.ftp.FtpsClient that
extends org.apache.commons.net.ftp.FTPClient), with some minor
modification to adapt Java 1.3 and solve some fix with PASV transfer
(modification and fix, that i comunicate to the author).

I try to build FtpsClient under diferent packege, then i found that
couldn't do it because, in org.apache.commons.net.ftp.FTP the
variables

BufferedReader _controlInput;
BufferedWriter _controlOutput;

were declare with packege visibility, and FtpsClient use this, to
implement securety
connection to SSLSocket. Something like this:

this._controlInput = new BufferedReader(new
InputStreamReader(socket.getInputStream(), getControlEncoding()));
this._controlOutput = new BufferedWriter(new
OutputStreamWriter(socket.getOutputStream(), getControlEncoding()));

Because of this, FtpsClient, in UFSC, is under org.apache.commons.net.ftp.

Then the solution I adopt, was copy (and minor modify) FTPClient and
FTP from org.apache.commons.net.ftp in my own package, and extends
FtpsClient, from my own FTPClient, to make it in a difetent pakage...

And my suggestion is: It could be possible, for future version, declare
protected, for simplify the extension of api, to implement FTPS, or other future
protocol... in diferent package...?

as well, could by a setter, for this variables, to assing then the socket stream...

Thanks to all.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message