public class DeafOccupantInterceptor extends Object implements PacketInterceptor
Deaf occupants will not get messages broadcasted to all room occupants. However, they will
be able to get private messages, presences, IQ packets or room history. To use this
functionality you will need to send the message
MultiUserChat.addPresenceInterceptor(org.jivesoftware.smack.PacketInterceptor)
and
pass this interceptor as the parameter.
Note that this is a custom extension to the MUC service so it may not work with other servers than Wildfire.
Constructor and Description |
---|
DeafOccupantInterceptor() |
public DeafOccupantInterceptor()
public void interceptPacket(Packet packet)
PacketInterceptor
Interceptors are invoked using the same thread that requested the packet to be sent, so it's very important that implementations of this method not block for any extended period of time.
interceptPacket
in interface PacketInterceptor
packet
- the packet to is going to be sent to the server.