diff --git a/spring-integration-http/src/main/resources/org/springframework/integration/http/config/spring-integration-http-2.1.xsd b/spring-integration-http/src/main/resources/org/springframework/integration/http/config/spring-integration-http-2.1.xsd index 535cbc16d4..6441ff2289 100644 --- a/spring-integration-http/src/main/resources/org/springframework/integration/http/config/spring-integration-http-2.1.xsd +++ b/spring-integration-http/src/main/resources/org/springframework/integration/http/config/spring-integration-http-2.1.xsd @@ -90,14 +90,14 @@ Allows you to specify the URI path (e.g., /orderId/{order}) - When using the 'path' attribute, please ensure to also - declare a handler mapping bean of type - 'org.springframework.integration.http.inbound.UriPathHandlerMapping'. + When using the 'path' attribute, please ensure to also + declare a handler mapping bean of type + 'org.springframework.integration.http.inbound.UriPathHandlerMapping'. - This bean is used by the Spring MVC DispatcherServlet to - evaluate which URL maps to which inbound endpoint. For - more information please see the chapter on 'Handler mappings' - in the Spring Framework Reference Documentation. + This bean is used by the Spring MVC DispatcherServlet to + evaluate which URL maps to which inbound endpoint. For + more information please see the chapter on 'Handler mappings' + in the Spring Framework Reference Documentation. @@ -212,9 +212,9 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re Allows you to specify the URI path (e.g., /orderId/{order}) - When using the 'path' attribute, please ensure to also - declare a handler mapping bean of type - 'org.springframework.integration.http.inbound.UriPathHandlerMapping'. + When using the 'path' attribute, please ensure to also + declare a handler mapping bean of type + 'org.springframework.integration.http.inbound.UriPathHandlerMapping'. This bean is used by the Spring MVC DispatcherServlet to evaluate which URL maps to which inbound endpoint. @@ -297,7 +297,26 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re - + + + + + + + + + + @@ -562,6 +581,21 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re ]]> + + + + + @@ -651,7 +685,6 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re - \ No newline at end of file diff --git a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests-context.xml b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests-context.xml index 855e1fabad..35e867fc64 100644 --- a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests-context.xml +++ b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests-context.xml @@ -18,7 +18,13 @@ - + diff --git a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java index 5da7a2ad41..22b771b681 100644 --- a/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java +++ b/spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundGatewayParserTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -41,6 +41,7 @@ import org.springframework.core.convert.converter.Converter; import org.springframework.http.HttpHeaders; import org.springframework.integration.Message; import org.springframework.integration.MessageHeaders; +import org.springframework.integration.core.MessagingTemplate; import org.springframework.integration.core.PollableChannel; import org.springframework.integration.core.SubscribableChannel; import org.springframework.integration.http.MockHttpServletRequest; @@ -56,6 +57,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; * @author Mark Fisher * @author Iwein Fuld * @author Oleg Zhurakousky + * @author Gary Russell */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration @@ -90,6 +92,10 @@ public class HttpInboundGatewayParserTests { assertThat((Boolean) getPropertyValue(gateway, "convertExceptions"), is(true)); assertThat((PollableChannel) getPropertyValue(gateway, "replyChannel"), is(responses)); assertNotNull(TestUtils.getPropertyValue(gateway, "errorChannel")); + MessagingTemplate messagingTemplate = TestUtils.getPropertyValue( + gateway, "messagingTemplate", MessagingTemplate.class); + assertEquals(Long.valueOf(1234), TestUtils.getPropertyValue(messagingTemplate, "sendTimeout")); + assertEquals(Long.valueOf(4567), TestUtils.getPropertyValue(messagingTemplate, "receiveTimeout")); } @Test(timeout=1000)