初始化参数
对于在connector及channel中通过拦截器开发的应用,由于尚未进入识别器环节,通常有需要根据相应需求内置上下文变量的需求,可以通过initParam插件进行参数的初始化,此处的参数目前会设置到请求上下文中,而不是报文中。 示例如下,可以使用本地识别器进行参数的选择,遵循handler和controller的通用配置
initParam:
localRecognizers:
- id: recognizer1
keyMap: {uuid2: '${uuid}'}
type: uuid
values:
- id: initParam1
type: default
keyMap: {remoteIp: '${remoteIp}', bbb: '${bbb}', ccc: ccc, uuidddd: '${uuid2}'}
available: true
pipeType: direct
inbound: true