mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niklas Gustavsson <nik...@protocol7.com>
Subject Re: [Vysper] Creating Stanzas
Date Sat, 15 Jan 2011 17:11:13 GMT
On Sat, Jan 15, 2011 at 11:41 AM, Thomas Kratz <eiswind@googlemail.com> wrote:
> I still don't get StanzaBuilders mechanisms right. To create the
> timestamp for offline messages i would have to add a new XMLElement I
> guess to the MessageStanza. But How to build that ?

We do something similar in MUC when sending history to a client. You
can find the code in:
https://svn.apache.org/repos/asf/mina/vysper/trunk/server/extensions/xep0045-muc/src/main/java/org/apache/vysper/xmpp/modules/extension/xep0045_muc/model/DiscussionMessage.java

Look in the createStanza() method.

/niklas

Mime
View raw message