git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Camel-Box : Get BoxItem insted of GetFolder or GetFile


Hi,


I am using Camel-box and I have a situation where I have some id, but i don't know the object. I don't know if this id belongs to a File or Folder.


So I want to create a route to get BoxItem with the given itemId.

How do you solve this ?


I need something like this but for BoxItem.

from("seda:getFolderQueue").setExchangePattern(ExchangePattern.InOut)
        .log("********* GETTING FOLDER *********")
        .setHeader("CamelBox.path", method(folderService, "getPath"))
        .to("box://folders/folder");


Regards,

Vladimir