I have the following pipeline:
from("sftp:....")
.to("file://ftp_files");
I need to check mime type and stop it, in case if mime type is not as expected and send email.
I know a way to check mime type: https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#probeContentType(java.nio.file.Path)
How can I achieve it?