mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 04:12:04 +01:00
SMACK-464 Updated javadoc to make method usage more clear.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_4_0@13869 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
722ec5a48a
commit
86df178654
1 changed files with 8 additions and 1 deletions
|
@ -593,10 +593,14 @@ public abstract class Connection {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registers a packet listener with this connection. A packet filter determines
|
* Registers a packet listener with this connection. A packet listener will be invoked only
|
||||||
|
* when an incoming packet is received. A packet filter determines
|
||||||
* which packets will be delivered to the listener. If the same packet listener
|
* which packets will be delivered to the listener. If the same packet listener
|
||||||
* is added again with a different filter, only the new filter will be used.
|
* is added again with a different filter, only the new filter will be used.
|
||||||
*
|
*
|
||||||
|
* <p>
|
||||||
|
* NOTE: If you want get a similar callback for outgoing packets, see {@link #addPacketInterceptor(PacketInterceptor, PacketFilter)}.
|
||||||
|
*
|
||||||
* @param packetListener the packet listener to notify of new received packets.
|
* @param packetListener the packet listener to notify of new received packets.
|
||||||
* @param packetFilter the packet filter to use.
|
* @param packetFilter the packet filter to use.
|
||||||
*/
|
*/
|
||||||
|
@ -682,6 +686,9 @@ public abstract class Connection {
|
||||||
* may modify the packet to be sent. A packet filter determines which packets
|
* may modify the packet to be sent. A packet filter determines which packets
|
||||||
* will be delivered to the interceptor.
|
* will be delivered to the interceptor.
|
||||||
*
|
*
|
||||||
|
* <p>
|
||||||
|
* NOTE: For a similar functionality on incoming packets, see {@link #addPacketListener(PacketListener, PacketFilter)}.
|
||||||
|
*
|
||||||
* @param packetInterceptor the packet interceptor to notify of packets about to be sent.
|
* @param packetInterceptor the packet interceptor to notify of packets about to be sent.
|
||||||
* @param packetFilter the packet filter to use.
|
* @param packetFilter the packet filter to use.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue