Class DeafOccupantInterceptor

  extended by org.jivesoftware.smackx.muc.DeafOccupantInterceptor
All Implemented Interfaces:

public class DeafOccupantInterceptor
extends Object
implements PacketInterceptor

Packet interceptor that will intercept presence packets sent to the MUC service to indicate that the user wants to be a deaf occupant. A user can only indicate that he wants to be a deaf occupant while joining the room. It is not possible to become deaf or stop being deaf after the user joined the room.

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.

Gaston Dombiak

Constructor Summary
Method Summary
 void interceptPacket(Packet packet)
          Process the packet that is about to be sent to the server.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public DeafOccupantInterceptor()
Method Detail


public void interceptPacket(Packet packet)
Description copied from interface: PacketInterceptor
Process the packet that is about to be sent to the server. The intercepted packet can be modified by the interceptor.

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.

Specified by:
interceptPacket in interface PacketInterceptor
packet - the packet to is going to be sent to the server.


Copyright © 2003-2007 Jive Software.