Openfire 3.4.3 Javadoc

org.jivesoftware.openfire.muc.spi
Class IQOwnerHandler

java.lang.Object
  extended by org.jivesoftware.openfire.muc.spi.IQOwnerHandler

public class IQOwnerHandler
extends Object

A handler for the IQ packet with namespace http://jabber.org/protocol/muc#owner. This kind of packets are usually sent by room owners. So this handler provides the necessary functionality to support owner requirements such as: room configuration and room destruction.

Author:
Gaston Dombiak

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

Constructor Detail

IQOwnerHandler

public IQOwnerHandler(LocalMUCRoom chatroom,
                      PacketRouter packetRouter)
Method Detail

handleIQ

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

Parameters:
packet - the IQ packet sent by an owner of the room.
role - the role of the user that sent the packet.
Throws:
ForbiddenException - if the user does not have enough permissions (ie. is not an owner).
ConflictException - If the room was going to lose all of its owners.

Openfire 3.4.3 Javadoc

Copyright © 2003-2007 Jive Software.