/external/smack/src/org/jivesoftware/smackx/pubsub/packet/ |
H A D | SyncPacketSend.java | 14 package org.jivesoftware.smackx.pubsub.packet;
22 import org.jivesoftware.smack.packet.Packet;
26 * methods for sending a packet to the server and waiting for the reply.
35 static public Packet getReply(Connection connection, Packet packet, long timeout)
argument 38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
58 static public Packet getReply(Connection connection, Packet packet)
argument 61 return getReply(connection, packet, SmackConfiguration.getPacketReplyTimeout());
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
H A D | PacketListener.java | 11 void read(String packet); argument 13 void write(String packet); argument
|
/external/smack/src/org/jivesoftware/smack/ |
H A D | PacketInterceptor.java | 22 import org.jivesoftware.smack.packet.Packet;
30 * This allows event-style programming -- every time a new packet is found,
39 * Process the packet that is about to be sent to the server. The intercepted
40 * packet can be modified by the interceptor.<p>
42 * Interceptors are invoked using the same thread that requested the packet
46 * @param packet the packet to is going to be sent to the server.
48 public void interceptPacket(Packet packet);
argument
|
H A D | PacketListener.java | 23 import org.jivesoftware.smack.packet.Packet; 27 * This allows event-style programming -- every time a new packet is found, 38 * Process the next packet sent to this packet listener.<p> 44 * @param packet the packet to process. 46 public void processPacket(Packet packet); argument
|
/external/smack/src/org/jivesoftware/smack/filter/ |
H A D | PacketFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 27 * used when constructing packet listeners or collectors -- the filter defines 29 * packet processing.<p> 32 * for more complex packet filtering by using the 39 * // Use an anonymous inner class to define a packet filter that returns 40 * // all packets that have a packet ID of "RS145". 42 * public boolean accept(Packet packet) { 43 * return "RS145".equals(packet.getPacketID()); 46 * // Create a new packet collector using the filter we created. 57 * Tests whether or not the specified packet shoul 62 accept(Packet packet) argument [all...] |
H A D | FromContainsFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 37 * @param from the from field value the packet must contain. 46 public boolean accept(Packet packet) { argument 47 if (packet.getFrom() == null) { 51 return packet.getFrom().toLowerCase().indexOf(from) != -1;
|
H A D | FromMatchesFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 30 * if the sender of the packet matches the specified resource. 45 * specified address is a full JID then the filter will only match if the sender of the packet 48 * @param address the from field value the packet must match. Could be a full or bare JID. 58 public boolean accept(Packet packet) { argument 59 if (packet.getFrom() == null) { 63 // Check if the bare JID of the sender of the packet matches the specified JID 64 return packet.getFrom().toLowerCase().startsWith(address); 67 // Check if the full JID of the sender of the packet matches the specified JID 68 return address.equals(packet [all...] |
H A D | IQTypeFilter.java | 22 import org.jivesoftware.smack.packet.IQ;
23 import org.jivesoftware.smack.packet.Packet;
26 * A filter for IQ packet types. Returns true only if the packet is an IQ packet
43 * @see org.jivesoftware.smack.filter.PacketFilter#accept(org.jivesoftware.smack.packet.Packet)
45 public boolean accept(Packet packet) {
argument 46 return (packet instanceof IQ && ((IQ) packet).getType().equals(type));
|
H A D | MessageTypeFilter.java | 23 import org.jivesoftware.smack.packet.Message; 24 import org.jivesoftware.smack.packet.Packet; 29 * @see org.jivesoftware.smack.packet.Message.Type 45 public boolean accept(Packet packet) { argument 46 if (!(packet instanceof Message)) { 50 return ((Message) packet).getType().equals(this.type);
|
H A D | NotFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 26 * Implements the logical NOT operation on a packet filter. In other words, packets 47 public boolean accept(Packet packet) { argument 48 return !filter.accept(packet);
|
H A D | PacketExtensionFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 26 * Filters for packets with a particular type of packet extension. 36 * Creates a new packet extension filter. Packets will pass the filter if 37 * they have a packet extension that matches the specified element name 40 * @param elementName the XML element name of the packet extension. 41 * @param namespace the XML namespace of the packet extension. 49 * Creates a new packet extension filter. Packets will pass the filter if they have a packet 52 * @param namespace the XML namespace of the packet extension. 58 public boolean accept(Packet packet) { argument [all...] |
H A D | PacketIDFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 26 * Filters for packets with a particular packet ID. 35 * Creates a new packet ID filter using the specified packet ID. 37 * @param packetID the packet ID to filter for. 46 public boolean accept(Packet packet) { argument 47 return packetID.equals(packet.getPacketID());
|
H A D | PacketTypeFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 41 * Creates a new packet type filter that will filter for packets that are the 47 // Ensure the packet type is a sub-class of Packet. 54 public boolean accept(Packet packet) { argument 55 return packetType.isInstance(packet);
|
H A D | ThreadFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 24 import org.jivesoftware.smack.packet.Message; 47 public boolean accept(Packet packet) { argument 48 return packet instanceof Message && thread.equals(((Message) packet).getThread());
|
H A D | ToContainsFilter.java | 23 import org.jivesoftware.smack.packet.Packet; 38 * @param to the to field value the packet must contain. 47 public boolean accept(Packet packet) { argument 48 if (packet.getTo() == null) { 52 return packet.getTo().toLowerCase().indexOf(to) != -1;
|
/external/smack/src/org/jivesoftware/smack/packet/ |
H A D | Session.java | 21 package org.jivesoftware.smack.packet;
24 * IQ packet that will be sent to the server to establish a session.<p>
|
H A D | PacketExtension.java | 21 package org.jivesoftware.smack.packet; 24 * Interface to represent packet extensions. A packet extension is an XML subdocument 27 * packet extensions include message events, message properties, and extra presence data. 28 * IQ packets cannot contain packet extensions. 53 * @return the packet extension as XML.
|
H A D | StreamError.java | 20 package org.jivesoftware.smack.packet;
23 * Represents a stream error packet. Stream errors are unrecoverable errors where the server
|
/external/smack/src/org/jivesoftware/smack/util/ |
H A D | SyncPacketSend.java | 22 import org.jivesoftware.smack.packet.Packet;
26 * methods for sending a packet to the server and waiting for the reply.
35 static public Packet getReply(Connection connection, Packet packet, long timeout)
argument 38 PacketFilter responseFilter = new PacketIDFilter(packet.getPacketID());
41 connection.sendPacket(packet);
58 static public Packet getReply(Connection connection, Packet packet)
argument 61 return getReply(connection, packet, SmackConfiguration.getPacketReplyTimeout());
|
/external/smack/src/org/jivesoftware/smackx/bytestreams/ibb/packet/ |
H A D | Close.java | 14 package org.jivesoftware.smackx.bytestreams.ibb.packet;
16 import org.jivesoftware.smack.packet.IQ;
30 * Creates a new In-Band Bytestream close request packet.
|
/external/smack/src/org/jivesoftware/smackx/packet/ |
H A D | PEPEvent.java | 21 package org.jivesoftware.smackx.packet; 23 import org.jivesoftware.smack.packet.PacketExtension; 60 * Returns the XML element name of the extension sub-packet root element. 63 * @return the XML element name of the packet extension. 70 * Returns the XML namespace of the extension sub-packet root element. 74 * @return the XML namespace of the packet extension.
|
H A D | PEPPubSub.java | 21 package org.jivesoftware.smackx.packet; 23 import org.jivesoftware.smack.packet.IQ; 48 * Returns the XML element name of the extension sub-packet root element. 51 * @return the XML element name of the packet extension. 58 * Returns the XML namespace of the extension sub-packet root element. 62 * @return the XML namespace of the packet extension.
|
H A D | PrivateData.java | 21 package org.jivesoftware.smackx.packet;
|
/external/smack/src/org/jivesoftware/smackx/ping/packet/ |
H A D | Ping.java | 17 package org.jivesoftware.smackx.ping.packet; 19 import org.jivesoftware.smack.packet.IQ;
|
H A D | Pong.java | 17 package org.jivesoftware.smackx.ping.packet; 19 import org.jivesoftware.smack.packet.IQ; 24 * Composes a Pong packet from a received ping packet. This basically swaps
|