public class LocalMUCUser extends Object implements MUCUser
RemoteMUCRole
will be used instead.| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String roomName,
LocalMUCRole role)
Adds the role of the user in a particular room.
|
boolean |
equals(Object obj) |
org.xmpp.packet.JID |
getAddress()
Obtain the address of the user.
|
long |
getLastPacketTime()
Get time (in milliseconds from System currentTimeMillis()) since last packet.
|
Collection<LocalMUCRole> |
getRoles()
Get all roles for this user.
|
int |
hashCode() |
boolean |
isJoined()
Returns true if the user is currently present in one or more rooms.
|
void |
process(org.xmpp.packet.Packet packet)
This method does all packet routing in the chat server.
|
void |
removeRole(String roomName)
Removes the role of the user in a particular room.
|
public boolean isJoined()
public Collection<LocalMUCRole> getRoles()
public void addRole(String roomName, LocalMUCRole role)
roomName - The name of the room.role - The new role of the user.public void removeRole(String roomName)
roomName - The name of the room we're being removedpublic long getLastPacketTime()
public org.xmpp.packet.JID getAddress()
getAddress in interface MUCUserpublic void process(org.xmpp.packet.Packet packet)
throws UnauthorizedException,
PacketException
process in interface ChannelHandler<org.xmpp.packet.Packet>packet - The stanza to routeroomName - The name of the room that the stanza was addressed to.preExistingRole - The role of this user in the addressed room prior to processing of this stanza, if any.UnauthorizedException - if not allowed to process the packet.PacketException - thrown if the packet is malformed (results in the sender's
session being shutdown).Copyright © 2003–2020 Ignite Realtime. All rights reserved.