ในคำขอ Http ของ Spring-integration ที่อิงตามผู้ใช้ที่เข้าสู่ระบบต้องการเพิ่มส่วนหัวแบบไดนามิก param.say เช่นหากผู้ใช้ "A" เข้าสู่ระบบ & คำขอ hitHttp ตอนนี้จำเป็นต้องเพิ่มส่วนหัวเพิ่มเติมแบบไดนามิก 1 รายการ สำหรับผู้ใช้รายอื่นก็ควรแม้แต่คีย์ เช่นกัน (เช่นมีค่าเป็นโมฆะ)
สำหรับผู้ใช้
<int:gateway id="requestGateway" service-interface="net.group.gateway.Gateway" default-request-channel="jsonTransformationChannel">
<int:default-header name="X-MW-LOGGEDID" expression="@requestData.getLoggedID()" />
<int:default-header name="X-Srcvalue" value="56789" />
<int:default-header name="content-type" value="application/json" />
<int:default-header name="Accept" value="application/json" />
</int:gateway>
สำหรับผู้ใช้รายอื่น
<int:gateway id="requestGateway" service-interface="net.group.gateway.Gateway" default-request-channel="jsonTransformationChannel">
<int:default-header name="X-MW-LOGGEDID" expression="@requestData.getLoggedID()" />
<int:default-header name="content-type" value="application/json" />
<int:default-header name="Accept" value="application/json" />
</int:gateway>