diff --git a/org.springframework.integration.http/src/main/java/org/springframework/integration/http/HttpInboundEndpoint.java b/org.springframework.integration.http/src/main/java/org/springframework/integration/http/HttpInboundEndpoint.java
index 92d0f91f65..7a0b03c696 100644
--- a/org.springframework.integration.http/src/main/java/org/springframework/integration/http/HttpInboundEndpoint.java
+++ b/org.springframework.integration.http/src/main/java/org/springframework/integration/http/HttpInboundEndpoint.java
@@ -72,9 +72,10 @@ import org.springframework.web.servlet.View;
* {@link #setRequestChannel(org.springframework.integration.core.MessageChannel) request channel},
* a response will be generated. If a {@link #setView(View) view} has been
* provided, it will be invoked to render the response, and it will have
- * access to the 'requestMessage' in the model map. If no view is provided,
- * and the 'expectReply' value is false then a simple OK
- * status response will be issued.
+ * access to the request message in the model map. The corresponding key
+ * in that map is determined by the {@link #requestKey} property (with a
+ * default of "requestMessage"). If no view is provided, and the 'expectReply'
+ * value is false then a simple OK status response will be issued.
*
true. By default, the reply Message's payload will be
@@ -86,15 +87,21 @@ import org.springframework.web.servlet.View;
* In the request-reply case, if a 'view' is provided, the response will
* not be generated directly from the reply Message or its extracted payload.
* Instead, the model map will be passed to that view, and it will contain
- * either 'replyMessage' or 'replyPayload' depending on the value of
- * {@link #extractReplyPayload}. The model map will also contain the
- * original 'requestMessage'.
+ * either the reply Message or payload depending on the value of
+ * {@link #extractReplyPayload}. The corresponding key in the map will be
+ * determined by the {@link #replyKey} property (with a default of "reply").
+ * The map will also contain the original request Message as described above.
*
* @author Mark Fisher
* @since 1.0.2
*/
public class HttpInboundEndpoint extends SimpleMessagingGateway implements HttpRequestHandler {
+ private static final String DEFAULT_REQUEST_KEY = "requestMessage";
+
+ private static final String DEFAULT_REPLY_KEY = "reply";
+
+
private volatile List