Package nu.fw.jeti.events

Examples of nu.fw.jeti.events.DiscoveryListener


  public void discoveryInfoResult(JID jid,String id,IQDiscoInfo info)
  {
    TimerTask t =(TimerTask) timeoutTimers.remove(id);
    if(t!=null)t.cancel();
    infoCache.put(jid,info);
    DiscoveryListener d = infoRequests.remove(id);
    if(d!=null) d.discoveryInfoResult(jid,info);
  }
View Full Code Here


  public void discoveryItemResult(JID jid,String id,IQDiscoItems item)
  {
    TimerTask t =(TimerTask) timeoutTimers.remove(id);
    if(t!=null)t.cancel();
    itemCache.put(jid,item);
    DiscoveryListener d =itemRequests.remove(id);
    if(d!=null)d.discoveryItemResult(jid,item);
  }
View Full Code Here

    output.setAuthenticated();
    //output.send(new InfoQuery(new JID(server),"get",new IQBrowse()));
    //browse(new JID(loginInfo.getServer()),null);
    sendLoginMessage(I18N.gettext("main.loginstatus.Loading_roster")+"...");
    //TODO increase timeout
    getItems(new JID(loginInfo.getServer()), new DiscoveryListener()
    {
      public void discoveryItemResult(JID jid, DiscoveryItem item)
      {//cache disco items for this server
        if (item.hasItems())
        {
View Full Code Here

        System.out.println("Service listing");

//        ServiceDiscoveryManager disco = ServiceDiscoveryManager
//                .getInstanceFor(xmppConnection);
     
        xmppConnection.getItems(new JID(xmppConnection.getMyJID().getDomain()), new DiscoveryListener(){
      public void discoveryInfoResult(JID jid, DiscoveryInfo info){}
   
      public void discoveryItemResult(JID jid, DiscoveryItem item){
        boolean available = false;
        if (item.hasItems()){
View Full Code Here

TOP

Related Classes of nu.fw.jeti.events.DiscoveryListener

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.