Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.RosterItemBuilder


  private RosterItemBuilder itemBuilder;

    public RosterHandler()
    {
    builder = new RosterBuilder();
    itemBuilder = new RosterItemBuilder();
    }
View Full Code Here


      String nick = txtNick.getText();
      if (nick.equals("")) nick = contact.getUser();
      //still empty then use domain
      if (nick == null) nick = contact.getDomain();
      RosterBuilder rb = new RosterBuilder();
      RosterItemBuilder rib = new RosterItemBuilder();
      rib.addGroup((String) cmbGroup.getSelectedItem());
      rib.jid = contact;
      rib.name = nick;
      rib.ask = "subscribe";
      rb.addItem(rib.build());
      InfoQueryBuilder iqb = new InfoQueryBuilder();
      iqb.addExtension(rb.build());
      iqb.setType("set");
      backend.send(iqb.build());
    } catch (InstantiationException e2)
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.RosterItemBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.