camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Burgazzoli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7865) Support to carry file attributes on file endpoint
Date Thu, 14 Jan 2016 17:19:39 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098439#comment-15098439
] 

Luca Burgazzoli commented on CAMEL-7865:
----------------------------------------

My understanding is that it returns the same object as the relative view class, as example
see [BasicFileAttributeView|https://docs.oracle.com/javase/7/docs/api/java/nio/file/attribute/BasicFileAttributeView.html]
and for basic attributes it may be easy to have a string representation but I do not know
how complex it could be for things like ACLs

We can add a new property like CamelFileExtendedAttributes that could be a Map<String,Object>
on which the key is the required attribute and the value the result of the call i.e. in pseudo
code

{code:java}
    CamelFileExtendedAttributes[ 'posix:permissions' ] =  Files.getAttribute(path,  'posix:permissions'
)
{code}

> Support to carry file attributes on file endpoint
> -------------------------------------------------
>
>                 Key: CAMEL-7865
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7865
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Tomohisa Igarashi
>
> Java 7 introduced java.nio.file.attribute which allows to access file attributes. It
would be great if camel file endpoint can read/write the attributes with using this and carry
it by header or property.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message