fileExchangeStore

Version

Syntax

fileExchangeStore:
dir: <string> # required
maxDays: <number>
raw: <boolean>
saveBodyOnly: <boolean>
fileExchangeStore:
  dir: <string> # required
  maxDays: <number>
  raw: <boolean>
  saveBodyOnly: <boolean>

Sample

<beans>
<router exchangeStore="fileExchangeStore" />
<transport >
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
<fileExchangeStore dir="temp" raw="false" saveBodyOnly="false" />
</beans>
<beans>
<router exchangeStore="fileExchangeStore" />
  <transport >
    <ruleMatching />
    <dispatching />
    <userFeature />
    <httpClient />
  </transport>
  <fileExchangeStore dir="temp" raw="false" saveBodyOnly="false" />
</beans>

Attributes

NameRequiredDefaultDescriptionExamples
dirtrue-Directory where the exchanges are saved.logs
maxDaysfalse-1Number of days for which exchange logs are preserved. A value smaller than zero deactivates the deletion of old logs.60
rawfalsefalseIf this is true, headers will always be printed (overriding saveBodyOnly) and the body of the exchange won't be formatted nicely.true
saveBodyOnlyfalsefalseIf this is true, no headers will be written to the exchange log files.true

Can be used in