2016-07-05 76 views

回答

0

參見Programming Tips參考手冊,在那裏我們對XMPP聊天消息發送的樣品中:施加用於FtpMessageHandler

@Bean 
@ServiceActivator(inputChannel = "input") 
public MessageHandler sendChatMessageHandler(XMPPConnection xmppConnection) { 
    ChatMessageSendingMessageHandler handler = new ChatMessageSendingMessageHandler(xmppConnection); 

    DefaultXmppHeaderMapper xmppHeaderMapper = new DefaultXmppHeaderMapper(); 
    xmppHeaderMapper.setRequestHeaderNames("*"); 
    handler.setHeaderMapper(xmppHeaderMapper); 

    return handler; 
} 

相同的技術。

那裏也見Annotation Support

相關問題