Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 52400200B74 for ; Thu, 18 Aug 2016 08:17:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 45991160AB5; Thu, 18 Aug 2016 06:17:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8AD56160A8C for ; Thu, 18 Aug 2016 08:17:24 +0200 (CEST) Received: (qmail 93623 invoked by uid 500); 18 Aug 2016 06:17:18 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 93610 invoked by uid 99); 18 Aug 2016 06:17:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 06:17:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 25C82C0439 for ; Thu, 18 Aug 2016 06:17:18 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.511 X-Spam-Level: X-Spam-Status: No, score=0.511 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GKeIZ8XXdLrR for ; Thu, 18 Aug 2016 06:17:14 +0000 (UTC) Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id B7FA060D08 for ; Thu, 18 Aug 2016 06:17:13 +0000 (UTC) Received: by mail-qk0-f172.google.com with SMTP id v123so7987564qkh.2 for ; Wed, 17 Aug 2016 23:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=rerXQkwsgUYGxSaqWf+WHmQzvaioHby8FRLz/BJLJVk=; b=mqPFvD7b03CbY8qgPLXbMbcOAwyr2NtbAtKeF5c2p850eYJLfh3LmJXabAcmSilUUd s8qYYgccp2ZRDgVsfkvLla5U4F+Jd5ICPxGmF/gTzTc3FornsKgUSsdIS7IhhgiszpeV 3YMGogtoYcHCMD6wEAl1owm9Ym5mHxtx4RDxcy+fmQc5azGP9iTq+6oEnOg9UcD1VcZq 9sA/qorc6yp6olr8PTSU3SYhpKccBDYnsq0PqGuBSga5JRU2D8dOa7veP/8BSuNR0UpF DAU/UhJOik3XZ2Zg2dE/uuavcsfCBMzRp87kCtXDilDkLN9C4R5iIQTCJPbrNtRZjUn1 Rb0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=rerXQkwsgUYGxSaqWf+WHmQzvaioHby8FRLz/BJLJVk=; b=StyMly5hZcPB5fj2AnuQv51S6M6Nt9Ypft43pkpEFmCAA/4WkQL5jZyzBdkdtdRsip zMcB5YPoqXNVczDdnk65OVhJ5Lfx6Ov94cqNtHjSpeKS8V4ecsFsKtkwZnVDFCMePGht mZGHCZwJYwwoFlRsLzVpCDLtMnUES2olz9KFPuZkTndoA888uGtK4GZxsTVT0OLuUA1x Wr/SxeVMPw0QUBcRCovyUOtUNuGQlWIcKEEkiwDGCFRADQT2uuZIYbKWy0roOOzXU9jv 42skNc7aiLEh8eUt+Izkbfh3cJ3hT/ETxgyN3hMq4ixwqetuUSQ6rPyOrX1k6SYx3f2M QH4A== X-Gm-Message-State: AEkooutOvzokP5B2KtIIpvWX4Px5FSOOchhh1/Hc7d1rlWi1xCZ9aETfTbI6aF3WGOCFk2GOBxtABqBxht2r6g== X-Received: by 10.55.170.208 with SMTP id t199mr494410qke.151.1471501032680; Wed, 17 Aug 2016 23:17:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.37.136 with HTTP; Wed, 17 Aug 2016 23:16:52 -0700 (PDT) In-Reply-To: <1471125402929-5786379.post@n5.nabble.com> References: <1471125402929-5786379.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 18 Aug 2016 08:16:52 +0200 Message-ID: Subject: Re: ftp advanced filtering To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 18 Aug 2016 06:17:25 -0000 On Sat, Aug 13, 2016 at 11:56 PM, gonzo wrote: > Hello, > > I need to add some database checks into my filter. Having file name is not > enough for my case. > I'm wondering if there is any other option of file filtering than using > GenericFileFilter in uri? > Example: > from("ftp://user@host/Downloads?password=password&delete=true&filter=#myFileFilter") > ('delete=true' is added on purpose. By default I need files to be deleted.) > > 1. May I add any argument to '#myFileFilter(userId)' in uri? No But the implementation of the filter, is just a java class so you can create that instance anyhow you want and configure it. > 2. Can I use '.process()' and '.stop()' combination to prevent some files > from deleting? No > 3. Can '.filter(new Predicate() ...)' be used in ftp route? > Yes but the file is downloaded from FTP and then filtered afterwards in the Camel route, and if you have delete=true the file is also deleted regardless of that filter. > Regards, > Jared > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/ftp-advanced-filtering-tp5786379.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2