applicationContext-comm-httpclientBlockServiceApater.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
  4. xmlns:tx="http://www.springframework.org/schema/tx"
  5. xsi:schemaLocation="
  6. http://www.springframework.org/schema/beans classpath:schema/beans/spring-beans-2.5.xsd
  7. http://www.springframework.org/schema/tx classpath:schema/tx/spring-tx-2.5.xsd
  8. http://www.springframework.org/schema/aop classpath:schema/aop/spring-aop-2.5.xsd">
  9. <!-- 区块服务适配器 -->
  10. <bean id="httpclientBlockServiceApater" class="com.miniframe.httpclient.HttpTransmitter">
  11. <!-- 交易码转化为URI -->
  12. <property name="code2uri" value="false"/>
  13. <!-- 通讯类型 -->
  14. <property name="transType" value="json"/>
  15. <!-- 交易码的key -->
  16. <property name="transCode" value="transCode"/>
  17. <!-- 客户端http头传送内容 -->
  18. <property name="clienthttpHead" value="x-auth-token,x-auth-user"/>
  19. <!-- 服务器端http返回头传送内容 -->
  20. <property name="serverhttpHead" value=""/>
  21. <!-- 连接主机IP -->
  22. <property name="host" value="192.168.219.183"/>
  23. <!-- 连接主机port -->
  24. <property name="port" value="16300"/>
  25. <!-- 请求URI -->
  26. <property name="uri" value="/notaryblockservice/TransServlet"/>
  27. <!-- 通讯服务实现类 -->
  28. <property name="clientTransmeter" ref="httpAsyncClient"/>
  29. </bean>
  30. </beans>