package de.thedevstack.conversationsplus.xmpp.iqversion; import de.thedevstack.conversationsplus.xmpp.stanzas.IqPacket; /** * Generates the IQ Packets for Software Version * as defined in XEP-0092. * @see http://xmpp.org/extensions/xep-0092.html */ public final class IqVersionPacketGenerator { /** * Generates the IqPacket to reply the software version. *
     * 
     *   
     *     Exodus
     *     0.7.0.4
     *     Windows-XP 5.01.2600
     *   
     * 
     * 
* @param packet the packet to respond to * @return */ public static IqVersionPacket generateResponse(IqPacket packet) { IqVersionPacket iqVersionPacket = new IqVersionPacket(); iqVersionPacket.setTo(packet.getFrom()); iqVersionPacket.setId(packet.getId()); return iqVersionPacket; } private IqVersionPacketGenerator() {} }