Lines Matching defs:packet
37 import org.jivesoftware.smack.packet.Packet;
38 import org.jivesoftware.smack.packet.Presence;
39 import org.jivesoftware.smack.packet.XMPPError;
91 * The Thread environment for sending packet listeners.
417 public void sendPacket(Packet packet) {
421 if (packet == null) {
422 throw new NullPointerException("Packet is null.");
425 // Invoke interceptors for the new packet that is about to be sent.
427 // may modify the content of the packet.
428 firePacketInterceptors(packet);
431 send(ComposableBody.builder().setPayloadXML(packet.toXML())
438 // Process packet writer listeners. Note that we're using the
441 firePacketSendingListeners(packet);
482 * BOSH packet reader and {@link Roster} will not be removed; thus
485 * @param unavailablePresence the presence packet to send during shutdown.
569 * Processes a packet after it's been fully parsed by looping through the
570 * installed packet collectors and listeners and letting them examine the
571 * packet to see if they are a match with the filter.
573 * @param packet the packet to process.
575 protected void processPacket(Packet packet) {
576 if (packet == null) {
582 collector.processPacket(packet);
585 // Deliver the incoming packet to listeners.
586 listenerExecutor.submit(new ListenerNotification(packet));
754 * This class notifies all listeners that a packet was received.
758 private Packet packet;
760 public ListenerNotification(Packet packet) {
761 this.packet = packet;
766 listenerWrapper.notifyListener(packet);