【发布时间】:2016-01-26 13:22:40
【问题描述】:
我需要为<int-http:outbound-gateway> 实现 https。
我的代码如下就足够了吗?
我应该在我的代码中添加什么?
<int-http:outbound-gateway id="oeactivatedGateway"
url="${trigger.url}" http-method="DELETE" charset="UTF-8"
reply-timeout="${ws.reply.timeout}" mapped-request-headers="Authorization,Content-Type,Accept"
request-channel="channel.authorized.request" reply-channel="channel.reply"
request-factory="requestFactory">
<bean id="requestFactory"
class="org.springframework.http.client.SimpleClientHttpRequestFactory">
<property name="proxy">
<bean id="proxy" class="java.net.Proxy">
<constructor-arg>
<util:constant static-field="java.net.Proxy.Type.HTTP" />
</constructor-arg>
<constructor-arg>
<bean class="java.net.InetSocketAddress">
<constructor-arg value="${http.proxy.address}" />
<constructor-arg value="${http.proxy.port}" />
</bean>
</constructor-arg>
</bean>
</property>
</bean>
【问题讨论】: