Package org.jivesoftware.smackx.packet

Examples of org.jivesoftware.smackx.packet.PEPPubSub


     *
     * @param item the item to publish.
     */
    public void publish(PEPItem item) {
        // Create a new message to publish the event.
        PEPPubSub pubSub = new PEPPubSub(item);
        pubSub.setType(Type.SET);
        //pubSub.setFrom(connection.getUser());
        // Send the message that contains the roster
        connection.sendPacket(pubSub);
    }
View Full Code Here

TOP

Related Classes of org.jivesoftware.smackx.packet.PEPPubSub

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.