Examples of discoverInfo()


Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo()

                continue;
            }

            try {
                DiscoverInfo proxyInfo;
                proxyInfo = serviceDiscoveryManager.discoverInfo(item.getEntityID());
                Iterator<Identity> identities = proxyInfo.getIdentities();

                // item must have category "proxy" and type "bytestream"
                while (identities.hasNext()) {
                    Identity identity = identities.next();
View Full Code Here

Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo()

        while (iter.hasNext()) {
            DiscoverItems.Item item = iter.next();
            try {
                DiscoverInfo info;
                try {
                    info = discoManager.discoverInfo(item.getEntityID());
                }
                catch (XMPPException e) {
                    // Ignore Case
                    continue;
                }
View Full Code Here

Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo()

    public boolean isEmailAvailable() {
        ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);

        try {
            String workgroupService = StringUtils.parseServer(workgroupJID);
            DiscoverInfo infoResult = discoManager.discoverInfo(workgroupService);
            return infoResult.containsFeature("jive:email:provider");
        }
        catch (XMPPException e) {
            return false;
        }
View Full Code Here

Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo()

   */
  public DiscoverInfo getSupportedFeatures()
    throws XMPPException
  {
    ServiceDiscoveryManager mgr = ServiceDiscoveryManager.getInstanceFor(con);
    return mgr.discoverInfo(to);
  }
 
  private Packet sendPubsubPacket(Type type, PacketExtension ext, PubSubNamespace ns)
    throws XMPPException
  {
View Full Code Here

Examples of org.jivesoftware.smackx.ServiceDiscoveryManager.discoverInfo()

        ServiceDiscoveryManager discoManager = ServiceDiscoveryManager.getInstanceFor(connection);
        DiscoverItems items = discoManager.discoverItems(connection.getServiceName());
        for (Iterator<DiscoverItems.Item> it = items.getItems(); it.hasNext();) {
            DiscoverItems.Item item = it.next();
            try {
                DiscoverInfo info = discoManager.discoverInfo(item.getEntityID());
                if (info.containsFeature("http://jabber.org/protocol/muc")) {
                    answer.add(item.getEntityID());
                }
            }
            catch (XMPPException e) {
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.