Wso2 是否可以在HTTP端点中使用特殊字符作为变量而不进行编码?

Wso2 是否可以在HTTP端点中使用特殊字符作为变量而不进行编码?,wso2,wso2ei,Wso2,Wso2ei,因此,我尝试使用WSO2 Enterprise Integrator 7.1.0将数据发送到MQTT代理,并根据数据源使用变量更改主题名称 我想使用的主题名结构是/location/type/model/uniqueId/count 我能够使用静态主题名和以下配置将数据发布到我的MQTT代理: 带地址端点 mqtt:/SampleProxy?mqtt.server.host.name=localhost&mqtt.server.port=1883&mqtt.client.id=e

因此,我尝试使用WSO2 Enterprise Integrator 7.1.0将数据发送到MQTT代理,并根据数据源使用变量更改主题名称

我想使用的主题名结构是/location/type/model/uniqueId/count

我能够使用静态主题名和以下配置将数据发布到我的MQTT代理:

带地址端点

mqtt:/SampleProxy?mqtt.server.host.name=localhost&mqtt.server.port=1883&mqtt.client.id=esb.test.sender2&mqtt.subscription.qos=2&mqtt.blocking.sender=true&mqtt.topic.name=/canada/detector/det-01-001/count
这个方法工作得很好,但我不能在AddressEndpoint中使用变量,所以在将数据发送到mqtt代理之前,我不能更改属性名的det-01-001

使用HTTP端点

mqtt:/SampleProxy?mqtt.server.host.name=localhost&mqtt.server.port=1883&mqtt.client.id=esb.test.sender2&mqtt.subscription.qos=2&mqtt.blocking.sender=true&mqtt.topic.name={uri.var.topics}
和我的属性uri.var.topics


此方法有效,但将每个字符“/”更改为其ASCII编码引用“%2F”

结果是
%2Fcanada%2Fdetector%2Fdet-01-001%2Fcount

是否有解码“/”字符的方法或防止端点对其编码的选项

<property description="Topic" name="uri.var.topic" scope="default" type="STRING" value="/canada/detector/det-01-001/count"/>