WSO2 esb中的财产调解人中的运输范围到底是什么? [英] What exactly is the transport scope in Property mediators in WSO2 esb?

查看:130
本文介绍了WSO2 esb中的财产调解人中的运输范围到底是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WSO2 esb中的属性调解器中的传输范围到底是什么?
它是线程安全的吗?也就是说,如果范围被标记为传输,那么这对于当前的代理执行是本地的吗?
似乎没有足够的文档.

What exactly is the transport scope in Property mediators in WSO2 esb?
Is it thread safe? That is, if the scope is marked as transport, is this local to the current execution of the proxy ?
There does not seem to be enough documentation on this.

推荐答案

以下信息是从WSO2 ESB文档本身中提取的,并且已被记录在案.注意与线程安全有关,但更多地与集成配置级别范围有关.

Bellow information is extracted from the WSO2 ESB document itself and it has been documented. It is noting to do with the thread safe but more towards integration config level scope.

将在其中设置或删除属性的范围.可能的值如下.

The scope at which the property will be set or removed from. Possible values are as follows.

突触: 这是默认范围.只要交易(请求-响应)存在,在此范围内设置的属性就会持续存在.

Synapse: This is the default scope. The properties set in this scope last as long as the transaction (request-response) exists.

传输:在此范围内设置的属性将被视为传输头.例如,如果需要通过传出请求发送名为"CustomHeader"的HTTP标头,则可以在此范围内使用属性中介器配置.

Transport: The properties set in this scope will be considered transport headers. For example, if it is required to send an HTTP header named 'CustomHeader' with an outgoing request, you can use the property mediator configuration with this scope.

Axis2 :在此范围内设置的属性的寿命比在Synapse范围内设置的属性的寿命短.它们主要用于将参数传递给基础Axis2引擎

Axis2: Properties set in this scope have a shorter life span than those set in the Synapse scope. They are mainly used for passing parameters to the underlying Axis2 engine

axis2-client::这类似于Synapse范围.这两个范围之间的区别在于,可以通过使用类调解器创建的海关调解器,在调解器的mediate()方法内部访问axis2-client范围.有关更多信息,请参见axis2-client.

axis2-client: This is similar to the Synapse scope. The difference between the two scopes is that the axis2-client scope can be accessed inside the mediate() method of a mediator via a customs mediator created using the Class mediator. See axis2-client for further information.

操作:此作用域用于在操作上下文级别检索属性. 有关每个范围的详细说明,请参见XPath扩展功能.

Operation: This scope is used to retrieve a property in the operation context level. See XPath Extension Functions for a detailed explanation of each scope.

这篇关于WSO2 esb中的财产调解人中的运输范围到底是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆