Examples of TCPEndpoint


Examples of org.apache.vysper.mina.TCPEndpoint

            accountManagement.addUser(user3, "password1");
        }

        XMPPServer server = new XMPPServer("vysper.org");

        server.addEndpoint(new TCPEndpoint());

        BoshEndpoint boshEndpoint = new BoshEndpoint();
        boshEndpoint.setAccessControlAllowOrigin(Arrays.asList("*"));
        //        boshEndpoint.setSSLEnabled(true);
        //        boshEndpoint.setSSLCertificateInfo("src/main/resources/keystore",
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        if (!accountManagement.verifyAccountExists(user3)) {
            accountManagement.addUser(user3, "password1");
        }

        XMPPServer server = new XMPPServer("vysper.org");
        server.addEndpoint(new TCPEndpoint());
        //server.addEndpoint(new StanzaSessionFactory());
        server.setStorageProviderRegistry(providerRegistry);

        server.setTLSCertificateInfo(new File("../../core/src/main/config/bogus_mina_tls.cert"), "boguspw");
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

            accountManagement.addUser(user3, "password1");
        }

        XMPPServer server = new XMPPServer("vysper.org");

        server.addEndpoint(new TCPEndpoint());

        WebSocketEndpoint wsEndpoint = new WebSocketEndpoint();
//        wsEndpoint.setSSLEnabled(true);
//        wsEndpoint.setSSLCertificateKeystore("src/test/resources/keystore.jks", "password");
        wsEndpoint.setContextPath("/ws");
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        }

       
        XMPPServer server = new XMPPServer("vysper.org");

        server.addEndpoint(new TCPEndpoint());

        WebSocketEndpoint wsEndpoint = new WebSocketEndpoint() {

            // example of how you can combine Vysper with other resources
            @Override
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        accountManagement.addUser(EntityImpl.parseUnchecked(TEST_USERNAME1), TEST_PASSWORD1);
        accountManagement.addUser(EntityImpl.parseUnchecked(TEST_USERNAME2), TEST_PASSWORD2);

        server = new XMPPServer(SERVER_DOMAIN);

        TCPEndpoint endpoint = new TCPEndpoint();
        endpoint.setPort(port);
        server.addEndpoint(endpoint);
        server.setStorageProviderRegistry(providerRegistry);

        server.setTLSCertificateInfo(new File("src/main/config/bogus_mina_tls.cert"), "boguspw");
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

       
        accountManagement.addUser(EntityImpl.parseUnchecked("user1@vysper.org"), "password1");
        accountManagement.addUser(EntityImpl.parseUnchecked("user2@vysper.org"), "password1");

        XMPPServer server = new XMPPServer("vysper.org");
        server.addEndpoint(new TCPEndpoint());
        server.setStorageProviderRegistry(providerRegistry);

        server.setTLSCertificateInfo(new File("src/main/config/bogus_mina_tls.cert"), "boguspw");

        server.start();
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

            if (!accountManagement.verifyAccountExists(user1)) {
                accountManagement.addUser(user1, "password1");
            }
   
            server = new XMPPServer(domain);
            server.addEndpoint(new TCPEndpoint());
            server.setStorageProviderRegistry(providerRegistry);
   
            server.setTLSCertificateInfo(sce.getServletContext().getResourceAsStream("WEB-INF/bogus_mina_tls.cert"), "boguspw");
   
            try {
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        if (!accountManagement.verifyAccountExists(adminJID)) {
            accountManagement.addUser(adminJID, "password");
        }

        XMPPServer server = new XMPPServer(domain);
        server.addEndpoint(new TCPEndpoint());
        //server.addEndpoint(new StanzaSessionFactory());
        server.setStorageProviderRegistry(providerRegistry);

        server.setTLSCertificateInfo(new File("src/test/resources/bogus_mina_tls.cert"), "boguspw");
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        if (!accountManagement.verifyAccountExists(localUser)) {
            accountManagement.addUser(localUser, password);
        }

        // S2S endpoint
        TCPEndpoint s2sEndpoint = new TCPEndpoint();
        s2sEndpoint.setPort(5269);
        server.addEndpoint(s2sEndpoint);
       
        // C2S endpoint
        server.addEndpoint(new TCPEndpoint());
       
        server.setStorageProviderRegistry(providerRegistry);
        server.setTLSCertificateInfo(new File(keystorePath), keystorePassword);
       
        server.start();
View Full Code Here

Examples of org.apache.vysper.mina.TCPEndpoint

        // S2S endpoint
        server.addEndpoint(new S2SEndpoint());

        // C2S endpoint
        server.addEndpoint(new TCPEndpoint());
       
        //server.addEndpoint(new StanzaSessionFactory());
        server.setStorageProviderRegistry(providerRegistry);

        server.setTLSCertificateInfo(new File(keystorePath), keystorePassword);
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.