applicationContext-comm-httpclientApater.xml 1.3 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="httpclientApater" 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=""/>
  19. <!-- 服务器端http返回头传送内容 -->
  20. <property name="serverhttpHead" value=""/>
  21. <!-- 连接主机IP -->
  22. <property name="host" value="127.0.0.1"/>
  23. <!-- 连接主机port -->
  24. <property name="port" value="8080"/>
  25. <!-- 请求URI -->
  26. <property name="uri" value="/TransServlet"/>
  27. <!-- 通讯服务实现类 -->
  28. <property name="clientTransmeter" ref="httpAsyncClient"/>
  29. </bean>
  30. </beans>