Examples of IQProvider


Examples of org.jivesoftware.smack.provider.IQProvider

  public JingleProviderTest(final String name) {
    super(name);
  }

  public void testProviderManager() {
    IQProvider iqProv;
    String elementNamee = Jingle.getElementName();
    String nameSpace = Jingle.getNamespace();

    System.out.println("Testing if the Jingle IQ provider is registered...");
   
View Full Code Here

Examples of org.jivesoftware.smack.provider.IQProvider

            xppe.printStackTrace();
            return null;
        }

        DiscoverInfo iqPacket;
        IQProvider provider = new DiscoverInfoProvider();

        // Parse the IQ, we only need the id
        try {
            parser.next();
            id = parser.getAttributeValue("", "id");
            from = parser.getAttributeValue("", "from");
            to = parser.getAttributeValue("", "to");
            parser.next();
        } catch (XmlPullParserException e1) {
            return null;
        }

        try {
            iqPacket = (DiscoverInfo) provider.parseIQ(parser);
        } catch (Exception e) {
            return null;
        }

        iqPacket.setPacketID(id);
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.