public class IQOwnerHandler extends Object
Constructor and Description |
---|
IQOwnerHandler(LocalMUCRoom chatroom,
PacketRouter packetRouter) |
Modifier and Type | Method and Description |
---|---|
void |
handleIQ(org.xmpp.packet.IQ packet,
MUCRole role)
Handles the IQ packet sent by an owner of the room.
|
static boolean |
parseFirstValueAsBoolean(org.xmpp.forms.FormField field,
boolean defaultValue)
Deprecated.
Use FormField#parseFirstValueAsBoolean(String) provided by Tinder version 1.3.1 or newer.
|
public IQOwnerHandler(LocalMUCRoom chatroom, PacketRouter packetRouter)
public void handleIQ(org.xmpp.packet.IQ packet, MUCRole role) throws ForbiddenException, ConflictException, CannotBeInvitedException, NotAcceptableException
packet
- the IQ packet sent by an owner of the room.role
- the role of the user that sent the packet.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.CannotBeInvitedException
- neverNotAcceptableException
- if the room requires a password that was not supplied@Deprecated public static boolean parseFirstValueAsBoolean(org.xmpp.forms.FormField field, boolean defaultValue)
field
- A form field (cannot be null)defaultValue
- Returned if first value is null or empty.IllegalArgumentException
- when the input cannot be parsed as a boolean.Copyright © 2003–2020 Ignite Realtime. All rights reserved.