Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. <int-http:inbound-gateway id="httpInboundGatewayPathAdapterControlBus"
  2. request-channel="controlBusIn"
  3. reply-channel="controlBusWithReplyChannel"
  4. supported-methods="GET"
  5. path="{pathvalue}" request-payload-type="java.lang.String"
  6. payload-expression="#pathVariables.pathvalue">
  7.  
  8. <listener>
  9. <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
  10. </listener>
  11.  
  12. <servlet>
  13. <servlet-name>httpInboundGatewayPathAdapterControlBus</servlet-name>
  14. <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
  15. </servlet>
  16.  
  17. <servlet-mapping>
  18. <servlet-name>httpInboundGatewayPathAdapterControlBus</servlet-name>
  19. <url-pattern>/controlBusURIExpression/*</url-pattern>
  20. </servlet-mapping>
  21.  
  22. Map<String, String> pathVariables =
  23. (Map<String, String>) servletRequest.getAttribute(HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE);
  24.  
  25. <bean id="integrationRequestMappingHandlerMapping" class="org.springframework.integration.http.inbound.IntegrationRequestMappingHandlerMapping"/>
  26.  
  27. <int-http:inbound-gateway request-channel="receiveChannel"
  28. path="{pathValue}"
  29. payload-expression="#pathVariables.pathValue"
  30. supported-methods="GET"/>
  31.  
  32. <int-http:inbound-gateway request-channel="receiveChannel"
  33. path="{pathValue}"
  34. payload-expression="#pathVariables.pathValue"
  35. supported-methods="GET"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement