diff --git a/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/UriPathHandlerMapping.java b/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/UriPathHandlerMapping.java
index a6ad65e857..844e786fa9 100644
--- a/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/UriPathHandlerMapping.java
+++ b/spring-integration-http/src/main/java/org/springframework/integration/http/inbound/UriPathHandlerMapping.java
@@ -19,7 +19,6 @@ import java.util.Collections;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactoryUtils;
-import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.ApplicationContext;
import org.springframework.util.ObjectUtils;
import org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping;
@@ -28,14 +27,18 @@ import org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMappin
* @author Oleg Zhurakousky
* @since 2.1
*/
-public class UriPathHandlerMapping extends AbstractDetectingUrlHandlerMapping implements InitializingBean {
-
+public class UriPathHandlerMapping extends AbstractDetectingUrlHandlerMapping {
+
+ public UriPathHandlerMapping(){
+ this.setOrder(Integer.MIN_VALUE);
+ }
+
protected void detectHandlers() throws BeansException {
if (logger.isDebugEnabled()) {
logger.debug("Looking for URL mappings in application context: " + getApplicationContext());
}
- String[] beanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(getApplicationContext(), Object.class);
+ String[] beanNames = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(getApplicationContext(), HttpRequestHandlingEndpointSupport.class);
for (String beanName : beanNames) {
String[] urls = determineUrlsForHandler(beanName);
@@ -58,8 +61,4 @@ public class UriPathHandlerMapping extends AbstractDetectingUrlHandlerMapping im
String path = handler.getPath();
return Collections.singletonList(path).toArray(new String[]{});
}
-
- public void afterPropertiesSet() throws Exception {
- this.setOrder(Integer.MIN_VALUE);
- }
}
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 92a827ea1c..5b3c1615df 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
@@ -20,6 +20,9 @@
Defines an inbound HTTP-based Channel Adapter.
+
+
+
@@ -57,6 +60,13 @@
+
+
+
+ Allows you to specify SpEL expression to construct a Message payload
+
+
+
@@ -116,6 +126,9 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re
+
+
+
@@ -135,6 +148,13 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re
+
+
+
+ Allows you to specify SpEL expression to construct a Message payload
+
+
+
@@ -493,6 +513,28 @@ The String "HTTP_REQUEST_HEADERS" will match against any of the standard HTTP Re
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+