public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()) .append("\">"); buf.append("<deaf-occupant/>"); buf.append("</").append(getElementName()).append(">"); return buf.toString(); } }
public void interceptPacket(Packet packet) { Presence presence = (Presence) packet; // Check if user is joining a room if (Presence.Type.AVAILABLE == presence.getType() && presence.getExtension("x", "http://jabber.org/protocol/muc") != null) { // Add extension that indicates that user wants to be a deaf occupant packet.addExtension(new DeafExtension()); } }
public void interceptPacket(Packet packet) { Presence presence = (Presence) packet; // Check if user is joining a room if (Presence.Type.available == presence.getType() && presence.getExtension("x", "http://jabber.org/protocol/muc") != null) { // Add extension that indicates that user wants to be a deaf occupant packet.addExtension(new DeafExtension()); } }
public void interceptPacket(Packet packet) { Presence presence = (Presence) packet; // Check if user is joining a room if (Presence.Type.available == presence.getType() && presence.getExtension("x", "http://jabber.org/protocol/muc") != null) { // Add extension that indicates that user wants to be a deaf occupant packet.addExtension(new DeafExtension()); } }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()) .append("\">"); buf.append("<deaf-occupant/>"); buf.append("</").append(getElementName()).append(">"); return buf.toString(); } }
public void interceptPacket(Packet packet) { Presence presence = (Presence) packet; // Check if user is joining a room if (Presence.Type.available == presence.getType() && presence.getExtension("x", "http://jabber.org/protocol/muc") != null) { // Add extension that indicates that user wants to be a deaf occupant packet.addExtension(new DeafExtension()); } }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()) .append("\">"); buf.append("<deaf-occupant/>"); buf.append("</").append(getElementName()).append(">"); return buf.toString(); } }
public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()) .append("\">"); buf.append("<deaf-occupant/>"); buf.append("</").append(getElementName()).append(">"); return buf.toString(); } }