国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Mule2.2之File transport
Mule2.2中的文件傳輸器可以對文件進行靈活的處理,其功能非常完善,
File Transport提供一系列可配置的屬性,來提高它的實用性。
屬性
類型
目標
描述
writeToDirectory
String
connector, outbound endpoin
文件輸出的目錄
readFromDirectory
String
connector, inbound endpoin
文件輸入的目錄
autoDelete
boolean
connector, inbound endpoint
文件傳輸之后是否刪除源文件目錄文件
outputAppend
boolean
connector, outboun endpoint
pollingFrequency
long
connector, inbound endpoint
每個多長時間傳輸(以毫秒為單位)
moveToDirectory
String
connector, inbound endpoint
moveToPattern
String
connector, inbound endpoint
傳輸文件名模式
outputPattern
String
connector, outbound endpoint
輸出文件名模式
streaming
boolean
connector
是否把文件做為流處理
File Transport 實例:就是將項目中某個路徑下的文件讀取到另外一個文件夾中:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="
xmlns:xsi="
xmlns:stdio="
xmlns:file="
xmlns:smtp="xsi:schemaLocation="
http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.mulesource.org/schema/mule/core/2.2http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
http://www.mulesource.org/schema/mule/stdio/2.2http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd
http://www.mulesource.org/schema/mule/file/2.2http://www.mulesource.org/schema/mule/file/2.2/mule-file.xsd
http://www.mulesource.org/schema/mule/smtp/2.2<file:connector name="fileConnector" streaming="false"
pollingFrequency="1000" autoDelete="false">
<file:expression-filename-parser />
</file:connector>
<model name="fileMode">
<service name="fileService">
<inbound>
<file:inbound-endpoint path="./test/temp">
<!--過濾條件可以有選擇的讀取文件,下面的方式只拷貝后綴名為txt的文件到archive目錄中,當然還可以使用其他的方式
<file:filename-wildcard-filter
pattern="*.txt" />-->
</file:inbound-endpoint>
</inbound>
<outbound>
<pass-through-router><!-- 如果沒有#[header:originalFilename]那么原始文件的文件名和后綴就會使文件名被隨機的生成后綴名是.bat -->
<file:outbound-endpoint path="./test/archive" outputPattern="#[header:originalFilename]"
>
</file:outbound-endpoint>
</pass-through-router>
</outbound>
</service>
</model>
</mule>
對于mule的file Transport 可以參考mule的用戶手冊。
本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Mule http端點+transformer的一個小例子
實戰(zhàn)mule 2
Mule : Configuring Jms
Exchange 2013 五個接收連接器功能與解釋
CXF JMS Transport
pcie inbound、outbound及EP、RC間的互相訪問
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服