camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CAMEL-11250) File consumer - Allow to specify a header that has the file name to poll
Date Tue, 28 Nov 2017 18:21:00 GMT


ASF GitHub Bot commented on CAMEL-11250:

davsclaus commented on a change in pull request #2123: CAMEL-11250: File name pattern and
file predicate for poll enrich use.

 File path: camel-core/src/main/java/org/apache/camel/component/file/
 @@ -53,6 +54,8 @@
     protected volatile boolean prepareOnStartup;
     private final Pattern includePattern;
     private final Pattern excludePattern;
+    private Pattern fileNamePattern;
+    private Predicate<GenericFile> fileNamePredicate;
 Review comment:
   Dont use java8s predicate as it confused with camel predicate. 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> File consumer - Allow to specify a header that has the file name to poll
> ------------------------------------------------------------------------
>                 Key: CAMEL-11250
>                 URL:
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: Future
> See SO
> We can have a FILE_FILTER_NAME header that matches in the 
> org.apache.camel.component.file.GenericFileConsumer#isMatched(org.apache.camel.component.file.GenericFile<T>,
boolean, java.util.List<T>)
> so end users can set the header first and then do a pollEnrich with a static endpoint.
> The header can then use equalsIgnoreCase and reguar exp for matching, to make it easier
to match files.

This message was sent by Atlassian JIRA

View raw message