diff --git a/spring-integration-http/src/main/java/org/springframework/integration/http/HttpRequestHandlingController.java b/spring-integration-http/src/main/java/org/springframework/integration/http/HttpRequestHandlingController.java index db4cee39ad..9f27dbe4f0 100644 --- a/spring-integration-http/src/main/java/org/springframework/integration/http/HttpRequestHandlingController.java +++ b/spring-integration-http/src/main/java/org/springframework/integration/http/HttpRequestHandlingController.java @@ -23,6 +23,20 @@ import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.Controller; /** + * Inbound HTTP endpoint that implements Spring's {@link Controller} + * interface to be used with a DispatcherServlet front controller. + *

+ * The {@link #setViewName(String) viewName} will be passed into the + * ModelAndView return value. + *

+ * This endpoint will have request/reply behavior by default. That + * can be overridden by passing false to the constructor. + * In the request/reply case, the model map will be passed to the view, and it + * will contain either the reply Message or payload depending on the value of + * {@link #extractReplyPayload} (true by default, meaning just the payload). + * The corresponding key in the map is determined by the {@link #replyKey} + * property (with a default of "reply"). + * * @author Mark Fisher * @since 2.0 */