powered by Jive Software

Creating Roster Packets from Wildfire Rosters

I’‘m writing a plugin, and I need to create an org.xmpp.packet.Roster from an org.jivesoftware.wildfire.roster.Roster. Right now, I’'m performing the following steps:

  1. Getting the user’'s roster using RosterManager.getRoster.

  2. Creating an empty org.xmpp.packet.Roster.

  3. Iterating through the RosterItems from the org.jivesoftware.wildfire.roster.Roster, and adding items to the org.xmpp.packet.Roster.

This seems like an inefficient process since it seems like there should be an easy way to add org.jivesoftware.wildfire.roster.RosterItems to an org.xmpp.packet.Roster. The biggest issue is translating between the different enum types. Is there an easier way to do this? Maybe a utility to do this for me that I’'m missing?



Hey cantrell.

You should be look for this post .