/** * Publish an event. * * @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); }
/** * Publish an event. * * @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); }