谁能解释一下这个 mule3 代码?
Can anyone explain this mule3 code please?
这是我从 mule 3 到 mule 4 转换的第一个项目。我使用 mule4,但在 mule3 中是新的。
谁能帮帮我吗.....?
你能告诉我在这个 mule3 代码中使用这些自定义处理器和转换器吗? mule4 中的等效代码是什么?
像这样的 mule 4 中没有自定义转换器。
请帮帮我..
<configuration defaultProcessingStrategy="non-blocking" doc:name="Configuration"/>
<context:property-placeholder location="config.properties"/>
<expression-language:property-placeholder location="config.properties" />
{Configuration for Listener}
{Configuration for Request}
<spring:bean name="copyInboundToOutboundPropertiesTransformer"
class="org.mule.transformer.TransformerTemplate">
<spring:constructor-arg>
<spring:bean class="org.mule.transport.http.construct.support.CopyInboundToOutboundPropertiesTransformerCallback"/>
</spring:constructor-arg>
</spring:bean>
<flow name="proxy" >
{Listener Component}
<custom-processor class="com.mulesoft.gateway.extension.ProxyRequestHeadersProcessor" doc:name="Custom Processor"/>
<transformer ref="copyInboundToOutboundPropertiesTransformer" />
{Request Component}
<custom-processor class="com.mulesoft.gateway.extension.ProxyResponseHeadersProcessor" doc:name="Custom Processor"/>
</flow>
</mule>
他们进行一些 HTTP header 处理。参见 https://docs.mulesoft.com/api-manager/2.x/proxy-mule3-elements
这看起来像是 API Manager 创建的自动生成的代理。您不应尝试迁移这些自定义组件。尝试为 Mule 4 生成一个新的自动生成的代理。如果您无权访问 API 管理器,请忽略它们。 Mule 4 可能内置了该功能。
这是我从 mule 3 到 mule 4 转换的第一个项目。我使用 mule4,但在 mule3 中是新的。 谁能帮帮我吗.....? 你能告诉我在这个 mule3 代码中使用这些自定义处理器和转换器吗? mule4 中的等效代码是什么? 像这样的 mule 4 中没有自定义转换器。 请帮帮我..
<configuration defaultProcessingStrategy="non-blocking" doc:name="Configuration"/>
<context:property-placeholder location="config.properties"/>
<expression-language:property-placeholder location="config.properties" />
{Configuration for Listener}
{Configuration for Request}
<spring:bean name="copyInboundToOutboundPropertiesTransformer"
class="org.mule.transformer.TransformerTemplate">
<spring:constructor-arg>
<spring:bean class="org.mule.transport.http.construct.support.CopyInboundToOutboundPropertiesTransformerCallback"/>
</spring:constructor-arg>
</spring:bean>
<flow name="proxy" >
{Listener Component}
<custom-processor class="com.mulesoft.gateway.extension.ProxyRequestHeadersProcessor" doc:name="Custom Processor"/>
<transformer ref="copyInboundToOutboundPropertiesTransformer" />
{Request Component}
<custom-processor class="com.mulesoft.gateway.extension.ProxyResponseHeadersProcessor" doc:name="Custom Processor"/>
</flow>
</mule>
他们进行一些 HTTP header 处理。参见 https://docs.mulesoft.com/api-manager/2.x/proxy-mule3-elements
这看起来像是 API Manager 创建的自动生成的代理。您不应尝试迁移这些自定义组件。尝试为 Mule 4 生成一个新的自动生成的代理。如果您无权访问 API 管理器,请忽略它们。 Mule 4 可能内置了该功能。