Examples of addIQProvider()


Examples of org.jivesoftware.smack.provider.ProviderManager.addIQProvider()

     * setup an instance of a JingleManager.  We will appear to not support Jingle.  With the new
     * method you just call it once and all new connections will report Jingle support.)
     */
    public static void setJingleServiceEnabled() {
        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());

        // Enable the Jingle support on every established connection
        // The ServiceDiscoveryManager class should have been already
        // initialized
        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager.addIQProvider()

        xstream.alias(elementName, XStreamPacketExtension.class);

        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addExtensionProvider(getElementName(), getNamespace(),
            this);
        providerManager.addIQProvider(getElementName(), getNamespace(), this);

        // TODO Validate that elementName is a valid XML identifier
    }

    public static class XStreamIQPacket<T> extends IQ {
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager.addIQProvider()

  public static synchronized final void enableJingle() {
    if( enabled )
      return;
    enabled = true;
        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addIQProvider( JingleIQ.ELEMENT_NAME,
                JingleIQ.NAMESPACE,
                new JingleIQProvider());

        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
            public synchronized void connectionCreated(Connection connection) {
View Full Code Here

Examples of org.jivesoftware.smack.provider.ProviderManager.addIQProvider()

     * setup an instance of a JingleManager.  We will appear to not support Jingle.  With the new
     * method you just call it once and all new connections will report Jingle support.)
     */
    public static void setJingleServiceEnabled() {
        ProviderManager providerManager = ProviderManager.getInstance();
        providerManager.addIQProvider("jingle", "urn:xmpp:tmp:jingle", new JingleProvider());

        // Enable the Jingle support on every established connection
        // The ServiceDiscoveryManager class should have been already
        // initialized
        Connection.addConnectionCreationListener(new ConnectionCreationListener() {
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.