@Override public UserID parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException { Jid userID = ParserUtils.getJidAttribute(parser, "id"); // Advance to end of extension. parser.next(); return new UserID(userID); } }
@Override protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) { buf.rightAngleBracket(); buf.append("<queue-notifications/>"); // Add the user unique identification if the session is anonymous if (connection.isAnonymous()) { buf.append(new UserID(userID).toXML(null)); } // Append data form text buf.append(form.toXML(null)); return buf; } }
@Override protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) { buf.append(" jid=\"").append(userID).append("\">"); if (reason != null) { buf.append("<reason>").append(reason).append("</reason>"); } if (sessionID != null) { buf.append(new SessionID(sessionID).toXML(null)); } if (userID != null) { buf.append(new UserID(userID).toXML(null)); } return buf; } }
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { String userID = parser.getAttributeValue("", "id"); // Advance to end of extension. parser.next(); return new UserID(userID); } }
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { String userID = parser.getAttributeValue("", "id"); // Advance to end of extension. parser.next(); return new UserID(userID); } }
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { String userID = parser.getAttributeValue("", "id"); // Advance to end of extension. parser.next(); return new UserID(userID); } }
public String getChildElementXML () { StringBuilder buf = new StringBuilder(); buf.append("<offer-revoke xmlns=\"http://jabber.org/protocol/workgroup\" jid=\"").append(userID).append("\">"); if (reason != null) { buf.append("<reason>").append(reason).append("</reason>"); } if (sessionID != null) { buf.append(new SessionID(sessionID).toXML()); } if (userID != null) { buf.append(new UserID(userID).toXML()); } buf.append("</offer-revoke>"); return buf.toString(); } }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<join-queue xmlns=\"http://jabber.org/protocol/workgroup\">"); buf.append("<queue-notifications/>"); // Add the user unique identification if the session is anonymous if (connection.isAnonymous()) { buf.append(new UserID(userID).toXML()); } // Append data form text buf.append(form.toXML()); buf.append("</join-queue>"); return buf.toString(); } }
public String getChildElementXML () { StringBuilder buf = new StringBuilder(); buf.append("<offer-revoke xmlns=\"http://jabber.org/protocol/workgroup\" jid=\"").append(userID).append("\">"); if (reason != null) { buf.append("<reason>").append(reason).append("</reason>"); } if (sessionID != null) { buf.append(new SessionID(sessionID).toXML()); } if (userID != null) { buf.append(new UserID(userID).toXML()); } buf.append("</offer-revoke>"); return buf.toString(); } }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<join-queue xmlns=\"http://jabber.org/protocol/workgroup\">"); buf.append("<queue-notifications/>"); // Add the user unique identification if the session is anonymous if (connection.isAnonymous()) { buf.append(new UserID(userID).toXML()); } // Append data form text buf.append(form.toXML()); buf.append("</join-queue>"); return buf.toString(); } }
public class TestMain { public static void main(String []args) { UserID obj=new UserID("firstName","secondName"); //Using obj reference variable, you can request to the object for any message. System.out.println(obj.getId() + " " + obj.getPassword()); } }
public String getChildElementXML () { StringBuilder buf = new StringBuilder(); buf.append("<offer-revoke xmlns=\"http://jabber.org/protocol/workgroup\" jid=\"").append(userID).append("\">"); if (reason != null) { buf.append("<reason>").append(reason).append("</reason>"); } if (sessionID != null) { buf.append(new SessionID(sessionID).toXML()); } if (userID != null) { buf.append(new UserID(userID).toXML()); } buf.append("</offer-revoke>"); return buf.toString(); } }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<join-queue xmlns=\"http://jabber.org/protocol/workgroup\">"); buf.append("<queue-notifications/>"); // Add the user unique identification if the session is anonymous if (connection.isAnonymous()) { buf.append(new UserID(userID).toXML()); } // Append data form text buf.append(form.toXML()); buf.append("</join-queue>"); return buf.toString(); } }
public static void main(String[] args) { UserID process = new UserID(); process.firstName(); process.surname(); process.userID();