Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 16817 invoked from network); 22 Aug 2006 18:45:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 18:45:00 -0000 Received: (qmail 57727 invoked by uid 500); 22 Aug 2006 18:44:55 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 57681 invoked by uid 500); 22 Aug 2006 18:44:55 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 57660 invoked by uid 99); 22 Aug 2006 18:44:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 11:44:55 -0700 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=DNS_FROM_RFC_ABUSE,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jieryn@gmail.com designates 64.233.162.207 as permitted sender) Received: from [64.233.162.207] (HELO nz-out-0102.google.com) (64.233.162.207) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 11:44:54 -0700 Received: by nz-out-0102.google.com with SMTP id o1so1092075nzf for ; Tue, 22 Aug 2006 11:44:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=b6jIs/95UqeTYI5ui8Qeh9BB9gdkzHAekGd+XzSOJgvSRiO9OKVqUYKHOBUtI18ynpGbkxEOTw4+IxW6jFrohekGM2myXh1SYaRqXo0wyWVChyO36zfzpCvATx9jIyHolnMD7MUHsj9/kJozxHrt928K3vIEpQNZ12dvnOCdwDo= Received: by 10.65.119.14 with SMTP id w14mr8905089qbm; Tue, 22 Aug 2006 11:44:33 -0700 (PDT) Received: by 10.65.225.3 with HTTP; Tue, 22 Aug 2006 11:44:33 -0700 (PDT) Message-ID: Date: Tue, 22 Aug 2006 14:44:33 -0400 From: jieryn@gmail.com To: commons-user@jakarta.apache.org Subject: FTP initiateListParsing MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Greetings, I'm having difficulty with a subclass of FTPClient. I need to use a special parser as the server has a very unusual setup not covered by any of the existing frameworks (I'm trying to get business approval to submit code into the project..) Anyhow, I have my own parser, let's call it MyFTPParser, extending ConfigurableFTPFileEntryParserImpl which I then pass into initiateListParsing with MyFTPParser.class.getCanonicalName(). (btw - why don't we accept a Class object here, this seems it would be useful). However, when I then call the returned Engine's getFiles() I can see in Eclipse debug mode that I do not have an instance of MyFTPParser, but rather the default FTP Parser for the base server class (MVS)! I don't seem to have any way to set the parser, and it doesn't appear to be following the javadoc. initiateListParsing is supposed to throw an exception if it can not load the class name provided, I can give it complete gobbly gook and it will always return to me the base server parser, MVS, when it should fail. I realize I've probably got a silly user error here, but I've already wasted two hours trying to find it to no avail. Please help, and thanks for a great product! :-) -Jesse --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org