Package tigase.disco

Examples of tigase.disco.ServiceEntity


    pack_routed = (Boolean)props.get(PACK_ROUTED_KEY);
    //service_disco = (Boolean)props.get(RETURN_SERVICE_DISCO_KEY);
    identity_type = (String)props.get(IDENTITY_TYPE_KEY);

    //serviceEntity = new ServiceEntity(getName(), "external", "XEP-0114");
    serviceEntity = new ServiceEntity("XEP-0114 " + getName(), null, "XEP-0114");
    serviceEntity.addIdentities(
      new ServiceIdentity("component", identity_type, "XEP-0114 " + getName()));
  }
View Full Code Here


      }
    }
  }

  private void updateServiceDiscovery(String jid, String name) {
    ServiceEntity item = new ServiceEntity(jid, null, name);
    //item.addIdentities(new ServiceIdentity("component", identity_type, name));
    log.finest("Modifing service-discovery info: " + item.toString());
    serviceEntity.addItems(item);
  }
View Full Code Here

    } // end of if (inProperties) else

    disco_name = (String)props.get(DISCO_NAME_PROP_KEY);
    disco_show_version = (Boolean)props.get(DISCO_SHOW_VERSION_PROP_KEY);

    serviceEntity = new ServiceEntity("Tigase", "server", "Session manager");
    serviceEntity.addIdentities(new ServiceIdentity[] {
        new ServiceIdentity("server", "im", disco_name +
          (disco_show_version ?
            (" ver. " + tigase.server.XMPPServer.getImplementationVersion())
            : ""))});
View Full Code Here

    return true;
  }

  private void addTaskToInstances(ReceiverTaskIfc task) {
    task_instances.put(task.getJID(), task);
    ServiceEntity item = new ServiceEntity(task.getJID(),
      JIDUtils.getNodeNick(task.getJID()), task.getDescription());
    item.addIdentities(
      new ServiceIdentity("component", "generic", task.getJID()));
    item.addFeatures(CMD_FEATURES);
    serviceEntity.addItems(item);
    Queue<Packet> results = new LinkedList<Packet>();
    task.init(results);
    addOutPackets(results);
    task_types.get(task.getType()).instanceAdded();
View Full Code Here

              task.getJID() + ", ignoring.");
    } // end of else
  }

  protected void removeTaskInstance(ReceiverTaskIfc task) {
    ServiceEntity item = new ServiceEntity(task.getJID(),
      JIDUtils.getNodeNick(task.getJID()), task.getDescription());
    serviceEntity.removeItems(item);
    task_instances.remove(task.getJID());
    Queue<Packet> results = new LinkedList<Packet>();
    task.destroy(results);
View Full Code Here

  public void setProperties(final Map<String, Object> props) {
    super.setProperties(props);

    my_hostname = (String)props.get(MY_DOMAIN_NAME_PROP_KEY);
//    simpleJid = (String)props.get(SIMPLE_JID_PROP_KEY);
    serviceEntity = new ServiceEntity(getName(), null, "Stanza Receiver");
    serviceEntity.addIdentities(
      new ServiceIdentity("component", "generic", "Stanza Receiver"));
    serviceEntity.addFeatures(DEF_FEATURES);
    ServiceEntity com = new ServiceEntity(my_hostname, "commands",
      "Tasks management commands");
    com.addFeatures(DEF_FEATURES);
    com.addIdentities(
      new ServiceIdentity("automation", "command-list",
        "Tasks management commands"));
    serviceEntity.addItems(com);
    for (TaskCommandIfc comm: commands.values()) {
      ServiceEntity item =
              new ServiceEntity(my_hostname,
              comm.getNodeName(), comm.getDescription());
      item.addFeatures(CMD_FEATURES);
      item.addIdentities(new ServiceIdentity("automation", "command-node",
          comm.getDescription()));
      com.addItems(item);
    } // end of for (TaskCommandIfc comm: commands.values())

    admins = (String[])props.get(ADMINS_PROP_KEY);
View Full Code Here

      gw_type = gc.getType();
      gw_name = gc.getName();
      gw_desc = gc.getPromptMessage();
    }

    serviceEntity = new ServiceEntity(getName(), null, "Transport");
    serviceEntity.addIdentities(
      new ServiceIdentity("gateway", gw_type, gw_name));
    serviceEntity.addFeatures(DEF_FEATURES);
    serviceEntity.addFeatures("jabber:iq:register", "jabber:iq:gateway");
    //serviceEntity.addFeatures("jabber:iq:register");
View Full Code Here

  private long closedConnections = 0;

  @Override
  public void setName(String name) {
    super.setName(name);
    serviceEntity = new ServiceEntity(name, "sm", "Session manager");
    serviceEntity.addIdentities(
      new ServiceIdentity("component", "sm", "Session manager"));
  }
View Full Code Here

TOP

Related Classes of tigase.disco.ServiceEntity

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.