From ff3604e9723d506acb1b1131ae1a465bba6fc1f6 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sat, 13 Nov 2010 12:30:48 -0500 Subject: [PATCH] updated doc for header name change --- docs/src/reference/docbook/xmpp.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/reference/docbook/xmpp.xml b/docs/src/reference/docbook/xmpp.xml index 60255f29c7..97c0318432 100644 --- a/docs/src/reference/docbook/xmpp.xml +++ b/docs/src/reference/docbook/xmpp.xml @@ -102,17 +102,17 @@ xsi:schemaLocation="http://www.springframework.org/schema/integration/xmpp xmpp-connection="testConnection"/>]]> The adapter expects as its input - at a minimum - a payload of type java.lang.String, and a header value - for XmppHeaders.CHAT_TO_USER that specifies to which user the Message should be sent to. To + for XmppHeaders.CHAT_TO that specifies to which user the Message should be sent to. To create a message you might use the following Java code: xmppOutboundMsg = MessageBuilder.withPayload("Hello, XMPP!" ) - .setHeader(XmppHeaders.CHAT_TO_USER, "userhandle") + .setHeader(XmppHeaders.CHAT_TO, "userhandle") .build();]]> Another mechanism of setting such header is by using the XMPP enricher support. Here is an example using the enricher. - + ]]>