Package rocks.xmpp.extensions.ping.model

Examples of rocks.xmpp.extensions.ping.model.Ping


    public void unmarshalPing() throws XMLStreamException, JAXBException {
        String xml = "<iq from='capulet.lit' to='juliet@capulet.lit/balcony' id='s2c1' type='get'>\n" +
                "  <ping xmlns='urn:xmpp:ping'/>\n" +
                "</iq>";
        IQ iq = unmarshal(xml, IQ.class);
        Ping ping = iq.getExtension(Ping.class);
        Assert.assertNotNull(ping);
    }
View Full Code Here


     * @param jid The JID to ping.
     * @throws rocks.xmpp.core.stanza.model.StanzaException If the entity returned a stanza error.
     * @throws rocks.xmpp.core.session.NoResponseException  If the entity did not respond.
     */
    public void ping(Jid jid) throws XmppException {
        xmppSession.query(new IQ(jid, IQ.Type.GET, new Ping()));
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.ping.model.Ping

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.