public void processPacket(Packet packet) { // Get the MUC User extension MUCUser mucUser = getMUCUserExtension(packet); // Check if the MUCUser informs that the invitee has declined the invitation if (mucUser.getDecline() != null && ((Message) packet).getType() != Message.Type.error) { // Fire event for invitation rejection listeners fireInvitationRejectionListeners( mucUser.getDecline().getFrom(), mucUser.getDecline().getReason()); } } };
public void processPacket(Packet packet) { // Get the MUC User extension MUCUser mucUser = getMUCUserExtension(packet); // Check if the MUCUser informs that the invitee has declined the invitation if (mucUser.getDecline() != null && ((Message) packet).getType() != Message.Type.error) { // Fire event for invitation rejection listeners fireInvitationRejectionListeners( mucUser.getDecline().getFrom(), mucUser.getDecline().getReason()); } } };
public void processPacket(Packet packet) { // Get the MUC User extension MUCUser mucUser = getMUCUserExtension(packet); // Check if the MUCUser informs that the invitee has declined the invitation if (mucUser.getDecline() != null && ((Message) packet).getType() != Message.Type.error) { // Fire event for invitation rejection listeners fireInvitationRejectionListeners( mucUser.getDecline().getFrom(), mucUser.getDecline().getReason()); } } };
public void processPacket(Packet packet) { // Get the MUC User extension MUCUser mucUser = getMUCUserExtension(packet); // Check if the MUCUser informs that the invitee has declined the invitation if (mucUser.getDecline() != null && ((Message) packet).getType() != Message.Type.ERROR) { // Fire event for invitation rejection listeners fireInvitationRejectionListeners( mucUser.getDecline().getFrom(), mucUser.getDecline().getReason()); } }; };
public String toXML() { StringBuffer buf = new StringBuffer(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\">"); if (getInvite() != null) { buf.append(getInvite().toXML()); } if (getDecline() != null) { buf.append(getDecline().toXML()); } if (getItem() != null) { buf.append(getItem().toXML()); } if (getPassword() != null) { buf.append("<password>").append(getPassword()).append("</password>"); } if (getStatus() != null) { buf.append(getStatus().toXML()); } if (getDestroy() != null) { buf.append(getDestroy().toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\">"); if (getInvite() != null) { buf.append(getInvite().toXML()); } if (getDecline() != null) { buf.append(getDecline().toXML()); } if (getItem() != null) { buf.append(getItem().toXML()); } if (getPassword() != null) { buf.append("<password>").append(getPassword()).append("</password>"); } if (getStatus() != null) { buf.append(getStatus().toXML()); } if (getDestroy() != null) { buf.append(getDestroy().toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\">"); if (getInvite() != null) { buf.append(getInvite().toXML()); } if (getDecline() != null) { buf.append(getDecline().toXML()); } if (getItem() != null) { buf.append(getItem().toXML()); } if (getPassword() != null) { buf.append("<password>").append(getPassword()).append("</password>"); } if (getStatus() != null) { buf.append(getStatus().toXML()); } if (getDestroy() != null) { buf.append(getDestroy().toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }
public String toXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(getElementName()).append(" xmlns=\"").append(getNamespace()).append( "\">"); if (getInvite() != null) { buf.append(getInvite().toXML()); } if (getDecline() != null) { buf.append(getDecline().toXML()); } if (getItem() != null) { buf.append(getItem().toXML()); } if (getPassword() != null) { buf.append("<password>").append(getPassword()).append("</password>"); } if (getStatus() != null) { buf.append(getStatus().toXML()); } if (getDestroy() != null) { buf.append(getDestroy().toXML()); } buf.append("</").append(getElementName()).append(">"); return buf.toString(); }