apache-camel - Apache Camel: What meaning of "attachments" in message model?
问题描述
I read the book Camel in Action. But I can't understand what attachment mean in its message model.
I know headers such like sender information, receiver information, or data encoding etc. However, I don't know what is mean of attachments?
解决方案
Lets run through some examples
- You are consuming a file, camel can create a message with contents of the file as payload and file name etc as message headers
- You are consuming a jms message, camel can create a message with contents of jms message as payload and jms header etc as message headers.
- You are sending simple http request, camel can crate a message with what is inside the http request as paylaod and url etc as headers
Then you have some other components
- You can send an email with some text in the body and some attachments, so in this case camel creates a message with payload, headers and attachments
- You can also send SOAP request with attachments, in this case also, camel creates the message with payload, headers and attachments.
But there is not many camel components which support attachment. There is few like email, soap service etc
推荐阅读
- android-studio - 如何在android studio上显示小数
- python - 如何通过在左侧和右侧的平均值之间插值来填充缺失值?
- angular - Ng Build with NGCC Error using ngx-awesome-uploader
- c# - 在另一个线程上运行后更新 UI
- java - 如何在 webview android studio 中更改日期选择器的主题/样式?
- conda - 在 conda env 中使用轮子安装 ray
- apache-kafka - ksqlDB:可以使用 UDF 进行 SELECT,但无法使用相同的 SELECT 语句创建流
- java - 如何使用 log4j 实现滚动窗口日志
- apache - 重写规则以将两个友好的 url 重定向到同一个文件
- flutter - Flutter svg 动画和操作