You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/11/30 10:09:36 UTC

[camel] 15/16: CAMEL-12933 override populateHeaders considering backward compatibility

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch sandbox/camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c4bbc59c4fbe4de7c0db27100d8a8e6ec7945908
Author: onders <on...@apache.org>
AuthorDate: Wed Nov 14 04:11:23 2018 +0300

    CAMEL-12933 override populateHeaders  considering backward compatibility
---
 .../main/java/org/apache/camel/component/file/remote/RemoteFile.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFile.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFile.java
index cd1d18e..e29c248 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFile.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/RemoteFile.java
@@ -42,6 +42,11 @@ public class RemoteFile<T> extends GenericFile<T> implements Cloneable {
             message.setHeader("CamelFileHost", getHostname());
         }
     }
+    
+    @Override
+    public void populateHeaders(GenericFileMessage<T> message, boolean isProbeContentTypeFromEndpoint) {
+        populateHeaders(message);
+    }
 
     public String getHostname() {
         return hostname;