Examples of InfoQuery


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

 
  private void sendError()
  {
    XMPPError error = new XMPPError("cancel",404);
    error.addError(new XMPPErrorTag("item-not-found"));
    backend.send(new InfoQuery(iq.getFrom(),iq.getID(),error));
  }
View Full Code Here

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

       // stunPacket.setTo(NAME + "." + xmppConnection.getServiceName());

//        PacketCollector collector = xmppConnection
//                .createPacketCollector(new PacketIDFilter(stunPacket.getPacketID()));

        xmppConnection.send(new InfoQuery("set",stunPacket), listener,10);

//        STUN response = (STUN) collector
//                .nextResult(SmackConfiguration.getPacketReplyTimeout());

        // Cancel the collector.
View Full Code Here

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

     
 
  /*-----------------StatusChangeEvents---------------------------*/
  public void connectionChanged(boolean online)
  {
    if (online) backend.send(new InfoQuery("get",new IQPrivate(new ServerLogExtension())));
  }
View Full Code Here

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

   
      public void update(Observable o, Object arg)
      {
        sid = Math.abs(random.nextLong());

                InfoQuery query = RTPBridge.getRTPBridge(connection, String.valueOf(sid));

                connection.send(query, new IQResultListener()
            {
           
              public void iqResult(InfoQuery iq)
View Full Code Here

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

          }
          else JOptionPane.showMessageDialog(backend.getMainWindow(),I18N.gettext("xmppuri.Please_enable_the_filetransfer_plugin_to_send_files"));
        }
        else if(queryText.startsWith("register"))
        {
          backend.send(new InfoQuery(jid,"get",new IQRegister()));
        }
      }
    }
  }
View Full Code Here

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

            id, "http://jabber.org/protocol/si/profile/file-transfer",null,
            xdata,
            new XSiFileTransfer(file.getName(), null, null, file.length(),
                                description, 0, 0));
        backend.send(
            new InfoQuery(to,"set","filetransfer"+backend.getIdentifier(),si),
            this, 0);
   
        backend.addListener(ErrorListener.class,this);
    }
View Full Code Here

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

      p[1] = encode(logo);
      tempBusiness.put("LOGO",p);
    }
    else tempBusiness.put("LOGO",business.get("LOGO"));
   
    backend.send(new InfoQuery("set",new VCard(tempPersonal,tempBusiness,null,null)));
    if(PluginsInfo.isPluginLoaded("ichatavatars"))
    {
      Avatars a = (Avatars)PluginsInfo.getPluginInstance("ichatavatars");
      a.sendPresence();
    }
View Full Code Here

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

  {
    backend.getMain().addToRosterMenu(I18N.gettext("vcard.Show_Details"),new RosterMenuListener ()
    {
      public void actionPerformed(JIDStatus jidStatus,nu.fw.jeti.backend.roster.JIDStatusGroup group)
      {
        backend.send(new InfoQuery(jidStatus.getJID(),"get",new VCard()));
      }
    });
    menuitem = new JMenuItem(I18N.gettext("vcard.Edit_Details"));
    menuitem.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        backend.send(new InfoQuery("get", new VCard()),new IQResultListener()
        {
          public void iqResult(InfoQuery iq)
          {
            IQExtension iqe = iq.getIQExtension();
            if(iqe instanceof VCard)
View Full Code Here

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

        String value = ((javax.swing.JTextField)entry.getValue()).getText().trim();
        if(value .equals("")) continue;
          tmap.put(entry.getKey(),value);
      }
      tmap.put("key",key);
      backend.send(new InfoQuery(from,"set",new IQSearch(tmap)));
      this.dispose();
  }
View Full Code Here

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

      this.dispose();
  }
 
  public void sendForm(XData xdata)
  {
    backend.send(new InfoQuery(from,"set",id,new IQSearch(xdata)));
    this.dispose();    
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.