Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 26085 invoked from network); 18 Jan 2006 12:55:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jan 2006 12:55:39 -0000 Received: (qmail 94802 invoked by uid 500); 18 Jan 2006 12:55:35 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 94730 invoked by uid 500); 18 Jan 2006 12:55:34 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 94715 invoked by uid 99); 18 Jan 2006 12:55:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2006 04:55:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [64.202.165.194] (HELO smtpout02-04.prod.mesa1.secureserver.net) (64.202.165.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 18 Jan 2006 04:55:34 -0800 Received: (qmail 26396 invoked from network); 18 Jan 2006 12:55:05 -0000 Received: from unknown (24.13.84.182) by smtpout02-04.prod.mesa1.secureserver.net (64.202.165.194) with ESMTP; 18 Jan 2006 12:55:05 -0000 Message-ID: <43CE3AA9.3020109@javactivity.org> Date: Wed, 18 Jan 2006 06:55:05 -0600 From: Steve Cohen User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: [net] How to implent FTPS extending FTPClient, from a diferente package... References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N PLease write this up in bugzilla and we will consider it. Do you want to set these variables or only get them? Jose Juan Montiel wrote: > 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 now, my question is: why this variables are declare this way? > without a getter? > > 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...? > > Thanks to all, for your time and anwers. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org