You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2015/02/27 09:49:05 UTC
[jira] [Commented] (CAMEL-8357) Add JDK 7 Mime/Content Type Support
To file Camel Consumers
[ https://issues.apache.org/jira/browse/CAMEL-8357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339888#comment-14339888 ]
Willem Jiang commented on CAMEL-8357:
-------------------------------------
I just check the code of ftp and hdfs/hdfs2, the File instances which these component use don't extends java.io.File, so we cannot use the Files.probeContentType API within these components.
> Add JDK 7 Mime/Content Type Support To file Camel Consumers
> -----------------------------------------------------------
>
> Key: CAMEL-8357
> URL: https://issues.apache.org/jira/browse/CAMEL-8357
> Project: Camel
> Issue Type: New Feature
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.15.0
>
>
> Enhance all Camel file-type consumers to probe the content type and populate a header on the exchange to allow access to content type.
> See:
> http://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#probeContentType%28java.nio.file.Path%29
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)