Package org.apache.vysper.xmpp.server.components

Examples of org.apache.vysper.xmpp.server.components.ComponentStanzaProcessor


            fullDomain = EntityImpl.parse(subdomain + "." + serverRuntimeContext.getServerEnitity().getDomain());
        } catch (EntityFormatException e) {
            throw new RuntimeException("failed to initialize MUC domain", e);
        }

        ComponentStanzaProcessor processor = new ComponentStanzaProcessor(serverRuntimeContext);
        processor.addHandler(new MUCPresenceHandler(conference));
        processor.addHandler(new MUCMessageHandler(conference, fullDomain));
        stanzaProcessor = processor;

        RoomStorageProvider roomStorageProvider = (RoomStorageProvider) serverRuntimeContext.getStorageProvider(RoomStorageProvider.class);
        OccupantStorageProvider occupantStorageProvider = (OccupantStorageProvider) serverRuntimeContext.getStorageProvider(OccupantStorageProvider.class);
View Full Code Here


        this.serverRuntimeContext = serverRuntimeContext;

        fullDomain = EntityUtils.createComponentDomain(subdomain, serverRuntimeContext);

        ComponentStanzaProcessor processor = new ComponentStanzaProcessor(serverRuntimeContext);
        processor.addHandler(new MUCPresenceHandler(conference));
        processor.addHandler(new MUCMessageHandler(conference, fullDomain));
        processor.addHandler(new MUCIqAdminHandler(conference));
        stanzaProcessor = processor;

        RoomStorageProvider roomStorageProvider = (RoomStorageProvider) serverRuntimeContext
                .getStorageProvider(RoomStorageProvider.class);
        OccupantStorageProvider occupantStorageProvider = (OccupantStorageProvider) serverRuntimeContext
View Full Code Here

            logger.warn("No leaf node storage provider found, using the default (in memory)");
        } else {
            serviceConfiguration.setLeafNodeStorageProvider(leafNodeStorageProvider);
        }

        ComponentStanzaProcessor processor = new ComponentStanzaProcessor(serverRuntimeContext);
        addPubsubHandlers(processor);
        addPubsubOwnerHandlers(processor);
        processor
                .addDictionary(new NamespaceHandlerDictionary(NamespaceURIs.XEP0060_PUBSUB_EVENT, new MessageHandler()));
        stanzaProcessor = processor;

        this.serviceConfiguration.setDomainJID(fullDomain);
        this.serviceConfiguration.initialize();
View Full Code Here

            logger.warn("No leaf node storage provider found, using the default (in memory)");
        } else {
            serviceConfiguration.setLeafNodeStorageProvider(leafNodeStorageProvider);
        }

        ComponentStanzaProcessor processor = new ComponentStanzaProcessor(serverRuntimeContext);
        addPubsubHandlers(processor);
        addPubsubOwnerHandlers(processor);
        processor
                .addDictionary(new NamespaceHandlerDictionary(NamespaceURIs.XEP0060_PUBSUB_EVENT, new MessageHandler()));
        stanzaProcessor = processor;

        this.serviceConfiguration.setServerJID(serverRuntimeContext.getServerEnitity());
        this.serviceConfiguration.initialize();
View Full Code Here

TOP

Related Classes of org.apache.vysper.xmpp.server.components.ComponentStanzaProcessor

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.