这是我从from 3到to 4转换的第一个项目。我使用过mule4,但在mule3中是新手。 谁能帮帮我吗.....? 您能告诉我在此mule3代码中使用这些自定义处理器和转换器吗? mule4中的等效代码是什么? 像这样的4子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>
答案 0 :(得分:0)
它们执行一些HTTP标头处理。参见https://docs.mulesoft.com/api-manager/2.x/proxy-mule3-elements
这看起来像是由API Manager创建的自动生成的代理。您不应尝试迁移那些自定义组件。尝试为Mule 4生成一个新的自动生成的代理。如果您无权访问API Manager,则忽略它们。 ule子4可能内置了功能。