Examples of PubSubOwner


Examples of rocks.xmpp.extensions.pubsub.model.owner.PubSubOwner

                "    </configure>\n" +
                "  </pubsub>\n" +
                "</iq>";

        IQ iq = unmarshal(xml, IQ.class);
        PubSubOwner pubSubOwner = iq.getExtension(PubSubOwner.class);
        Assert.assertNotNull(pubSubOwner);
        Assert.assertTrue(pubSubOwner.isConfigure());
        Assert.assertNotNull(pubSubOwner.getConfigurationForm());
        Assert.assertEquals(pubSubOwner.getNode(), "princely_musings");
    }
View Full Code Here

Examples of rocks.xmpp.extensions.pubsub.model.owner.PubSubOwner

                "      </x>\n" +
                "    </default>\n" +
                "  </pubsub>\n" +
                "</iq>";
        IQ iq = unmarshal(xml, IQ.class);
        PubSubOwner pubSubOwner = iq.getExtension(PubSubOwner.class);
        Assert.assertNotNull(pubSubOwner);
        Assert.assertTrue(pubSubOwner.isDefault());
        Assert.assertNotNull(pubSubOwner.getConfigurationForm());

    }
View Full Code Here

Examples of rocks.xmpp.extensions.pubsub.model.owner.PubSubOwner

     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     * @see <a href="http://xmpp.org/extensions/xep-0060.html#owner-configure-request">8.2.1 Request</a>
     */
    public DataForm getNodeConfiguration() throws XmppException {
        IQ result = xmppSession.query(new IQ(pubSubServiceAddress, IQ.Type.GET, PubSubOwner.withConfigure(nodeId)));
        PubSubOwner pubSubOwner = result.getExtension(PubSubOwner.class);
        return pubSubOwner.getConfigurationForm();
    }
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.