Package org.jivesoftware.smack.packet

Examples of org.jivesoftware.smack.packet.Packet.addExtension()


        final TransferDescription description,
        final IncomingTransferObject incomingTransferObject) {
        final Packet packet = new Message();
        packet.setPacketID(Packet.ID_NOT_AVAILABLE);
        packet.setFrom(description.sender.toString());
        packet.addExtension(incomingExtProv.create(incomingTransferObject));
        if (processIncomingTransferDescription(packet)) {
            return;
        }

        extensionDownloadThreadPool.execute(Utils.wrapSafe(log, new Runnable() {
View Full Code Here


        final Packet packet = new Message();
        packet.setPacketID(Packet.ID_NOT_AVAILABLE);
        packet.setFrom(description.sender.toString());
        packet.setTo(description.recipient.toString());
        packet.addExtension(extension);

        dispatchThreadContext.executeAsDispatch(new Runnable() {
            public void run() {
                processPacket(packet);
            }
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.