Spring integration spring集成出站网关rest ws从响应头读取http_状态码

Spring integration spring集成出站网关rest ws从响应头读取http_状态码,spring-integration,Spring Integration,我的应用程序的配置如下所示: <int:inbound-channel-adapter channel="quakeinfotrigger.channel" expression="''"> <int:poller fixed-delay="60000"></int:poller> </int:inbound-channel-adapter> <int:channel id="quakeinfo.channel"&g

我的应用程序的配置如下所示:

    <int:inbound-channel-adapter channel="quakeinfotrigger.channel"
    expression="''">
    <int:poller fixed-delay="60000"></int:poller>
</int:inbound-channel-adapter>

<int:channel id="quakeinfo.channel">
    <int:queue capacity="10" />
</int:channel>

<int:channel id="quakeinfotrigger.channel"></int:channel>

<int-http:outbound-gateway id="quakerHttpGateway"
    request-channel="quakeinfotrigger.channel" 
    url="http://fff.com/rest/objects"
    http-method="POST"
    expected-response-type="java.lang.String"
    charset="UTF-8"
    reply-timeout="5000"
     reply-channel="quakeinfo.channel">
</int-http:outbound-gateway>

我需要根据响应头上的http_statusCode处理错误。你能告诉我在我的密码里截取它吗。
谢谢,这完全取决于你想做什么

有很多方法可以使用标题,例如:

您可以订阅
quakeinfo.channel
,并根据标头值进行路由

您可以使用服务激活器

<service-activator input-channel="quakeinfo.channel" ref="foo" method="handle" />

这完全取决于你想做什么

有很多方法可以使用标题,例如:

您可以订阅
quakeinfo.channel
,并根据标头值进行路由

您可以使用服务激活器

<service-activator input-channel="quakeinfo.channel" ref="foo" method="handle" />