Package org.jivesoftware.smack.provider

Examples of org.jivesoftware.smack.provider.ProviderManager


    connConfig.setNotMatchingDomainCheckEnabled(false);
    connConfig.setSASLAuthenticationEnabled(false);
    connConfig.setReconnectionAllowed(false);
    connConfig.setDebuggerEnabled(true);

    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", UserCreate.NAMESPACE, new UserCreate.Provider());
    providerMgr.addIQProvider("query", UserDelete.NAMESPACE, new UserCreate.Provider());
   
    providerMgr.addIQProvider("query", GroupCreate.NAMESPACE, new GroupCreate.Provider());
    providerMgr.addIQProvider("query", GroupDelete.NAMESPACE, new GroupDelete.Provider());
   
    providerMgr.addIQProvider("query", AddUserToGroup.NAMESPACE, new AddUserToGroup.Provider());
    providerMgr.addIQProvider("query", RemoveUserFromGroup.NAMESPACE, new RemoveUserFromGroup.Provider());
   
    providerMgr.addIQProvider("query", SessionCount.NAMESPACE, new SessionCount.Provider());
   
    providerMgr.addIQProvider("query", SessionItems.NAMESPACE, new SessionItems.Provider());
   
    providerMgr.addIQProvider("query", UserCheck.NAMESPACE, new UserCheck.Provider());
   
    providerMgr.addIQProvider("query", PluginVersion.NAMESPACE, new PluginVersion.Provider());
   
    XMPPConnection connection = new XMPPConnection(connConfig);
   
   
    try {
View Full Code Here


 
  private AdminUserConnection adminUser;
  OLog log = Tracing.createLoggerFor(this.getClass());

  public RemoteAccountCreationOverXMPP() {
    ProviderManager providerMgr = ProviderManager.getInstance();
    //register iq handlers
    providerMgr.addIQProvider("query", UserCreate.NAMESPACE, new UserCreate.Provider());
    providerMgr.addIQProvider("query", UserDelete.NAMESPACE, new UserDelete.Provider());
    providerMgr.addIQProvider("query", UserCheck.NAMESPACE, new UserCheck.Provider());
   
  }
View Full Code Here

  OLog log = Tracing.createLoggerFor(this.getClass());
  private AdminUserConnection adminUser;

  public RemoteGroupCreationOverXMPP() {
   
    ProviderManager providerMgr = ProviderManager.getInstance();
    //register iq handler
    providerMgr.addIQProvider("query", GroupCreate.NAMESPACE, new GroupCreate.Provider());
    providerMgr.addIQProvider("query", GroupDelete.NAMESPACE, new GroupDelete.Provider());
   
    providerMgr.addIQProvider("query", AddUserToGroup.NAMESPACE, new AddUserToGroup.Provider());
    providerMgr.addIQProvider("query", RemoveUserFromGroup.NAMESPACE, new RemoveUserFromGroup.Provider());
  }
View Full Code Here

  private int sessionCount = 0;
  private AdminUserConnection adminUser;
 
  RemoteSessionCountOverXMPP() {
    //register IQ handler
    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", SessionCount.NAMESPACE, new SessionCount.Provider());
   
  }
View Full Code Here

  OLog log = Tracing.createLoggerFor(this.getClass());
  private AdminUserConnection adminUser;
  private CacheWrapper sessionItemsCache;
 
  public RemoteSessionsOnIMServerOverXMPP() {
    ProviderManager providerMgr = ProviderManager.getInstance();
    //register iq handler
    providerMgr.addIQProvider("query", SessionItems.NAMESPACE, new SessionItems.Provider());
  }
View Full Code Here

  private String version;
  private AdminUserConnection adminUser;
 
  RemotePluginVersionOverXMPP() {
    //register IQ handler
    ProviderManager providerMgr = ProviderManager.getInstance();
    providerMgr.addIQProvider("query", PluginVersion.NAMESPACE, new PluginVersion.Provider());
   
  }
View Full Code Here

  /**
   * The constructor will register the provider in the Smack API
   */
  private SXEExtensionProvider() {
    ProviderManager providerManager = ProviderManager.getInstance();
    providerManager.addExtensionProvider(SXEMessage.SXE_TAG,
        SXEMessage.SXE_XMLNS, this);
  }
View Full Code Here

     * attempt a Jingle connection to us after we've created a Connection, but before we've
     * 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

        xstream.registerConverter(new IPathConverter());
        xstream.processAnnotations(XStreamPacketExtension.class);
        xstream.processAnnotations(classes);
        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
    }
View Full Code Here

 
  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

TOP

Related Classes of org.jivesoftware.smack.provider.ProviderManager

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.