Package org.apache.vysper.xmpp.extension.xep0124

Examples of org.apache.vysper.xmpp.extension.xep0124.XMLUtil


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

        server.setTLSCertificateInfo(new File("src/test/resources/bogus_mina_tls.cert"), "boguspw");
       
        BoshEndpoint boshEndpoint = new BoshEndpoint();
        int port = findFreePort();
        boshEndpoint.setPort(port);
       
        boshEndpoint = processBoshEndpoint(boshEndpoint);
       
        server.addEndpoint(boshEndpoint);
       
View Full Code Here


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

        server.setTLSCertificateInfo(new File("src/test/resources/bogus_mina_tls.cert"), "boguspw");
       
        BoshEndpoint boshEndpoint = new BoshEndpoint();
        int port = findFreePort();
        boshEndpoint.setPort(port);
       
        boshEndpoint = processBoshEndpoint(boshEndpoint);
       
        server.addEndpoint(boshEndpoint);
       
View Full Code Here

        HttpEntity entity = new StringEntity(request);
        post.setEntity(entity);
        HttpResponse response = httpclient.execute(post);
       
        assertNotNull(response.getEntity());
        Stanza boshResponse = new XMLUtil(response.getEntity().getContent()).parse();

        assertEquals("body", boshResponse.getName());
        assertEquals(NamespaceURIs.XEP0124_BOSH, boshResponse.getNamespaceURI());
        return boshResponse;
    }
View Full Code Here

        String xml = parseFully(response.getEntity().getContent());
        Assert.assertTrue(xml.startsWith(declaration));
       
        xml = xml.substring(declaration.length());
       
        XMLElement elm = new XMLUtil(xml).parse();
        Assert.assertEquals("cross-domain-policy", elm.getName());
       
        Assert.assertEquals(2, elm.getInnerElements().size());
       
        XMLElement firstChild = elm.getInnerElements().get(0);
View Full Code Here

        HttpEntity entity = new StringEntity(request);
        post.setEntity(entity);
        HttpResponse response = httpclient.execute(post);
       
        assertNotNull(response.getEntity());
        Stanza boshResponse = new XMLUtil(response.getEntity().getContent()).parse();

        assertEquals("body", boshResponse.getName());
        assertEquals(NamespaceURIs.XEP0124_BOSH, boshResponse.getNamespaceURI());
        return boshResponse;
    }
View Full Code Here

TOP

Related Classes of org.apache.vysper.xmpp.extension.xep0124.XMLUtil

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.