Wildfire 3.2.4 Javadoc

org.jivesoftware.wildfire.muc.spi
Class IQAdminHandler

java.lang.Object
  extended by org.jivesoftware.wildfire.muc.spi.IQAdminHandler

public class IQAdminHandler
extends Object

A handler for the IQ packet with namespace http://jabber.org/protocol/muc#admin. This kind of packets are usually sent by room admins. So this handler provides the necessary functionality to support administrator requirements such as: managing room members/outcasts/etc., kicking occupants and banning users.

Author:
Gaston Dombiak

Constructor Summary
IQAdminHandler(MUCRoomImpl chatroom, PacketRouter packetRouter)
           
 
Method Summary
 void handleIQ(IQ packet, MUCRole role)
          Handles the IQ packet sent by an owner or admin of the room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQAdminHandler

public IQAdminHandler(MUCRoomImpl chatroom,
                      PacketRouter packetRouter)
Method Detail

handleIQ

public void handleIQ(IQ packet,
                     MUCRole role)
              throws ForbiddenException,
                     ConflictException,
                     NotAllowedException
Handles the IQ packet sent by an owner or admin of the room. Possible actions are:

Parameters:
packet - the IQ packet sent by an owner or admin of the room.
role - the role of the user that sent the request packet.
Throws:
ForbiddenException - If the user is not allowed to perform his request.
ConflictException - If the desired room nickname is already reserved for the room or if the room was going to lose all of its owners.
NotAllowedException - Thrown if trying to ban an owner or an administrator.

Wildfire 3.2.4 Javadoc

Copyright © 2003-2007 Jive Software.