Package rocks.xmpp.extensions.forward.model

Examples of rocks.xmpp.extensions.forward.model.Forwarded


     */
    public void forwardMessage(Message message, Jid to) {
        Message outerMessage = new Message(to, message.getType());
        // Include a empty body to make sure it will be stored in offline case.
        outerMessage.setBody(" ");
        outerMessage.getExtensions().add(new Forwarded(message, new DelayedDelivery(new Date())));
        xmppSession.send(outerMessage);
    }
View Full Code Here


                "          </message>\n" +
                "        </forwarded>\n" +
                "      </message>";

        Message message = unmarshal(xml, Message.class);
        Forwarded forwarded = message.getExtension(Forwarded.class);
        Assert.assertNotNull(forwarded);
        Assert.assertTrue(forwarded.getStanza() instanceof Message);
    }
View Full Code Here

TOP

Related Classes of rocks.xmpp.extensions.forward.model.Forwarded

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.