/* * Copyright 2006-2010 Daniel Henninger. All rights reserved. * * This software is published under the terms of the GNU Public License (GPL), * a copy of which is included in this distribution. */ package net.sf.kraken.protocols.xmpp.packet; import org.jivesoftware.smack.packet.PacketExtension; /** * Borrowed directly from Spark. */ public class BuzzExtension implements PacketExtension { public String getElementName() { return "buzz"; } public String getNamespace() { return "http://www.jivesoftware.com/spark"; } public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append("\"/>"); return buf.toString(); } }