|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.muc.spi.LocalMUCUser
public class LocalMUCUser
Representation of users interacting with the chat service. A user may join serveral rooms hosted by the chat service. That means that we are going to have an instance of this class for the user and several MUCRoles for each joined room.
This room occupant is being hosted by this JVM. When the room occupant
is hosted by another cluster node then an instance of RemoteMUCRole
will be used instead.
Method Summary | |
---|---|
void |
addRole(String roomName,
LocalMUCRole role)
Adds the role of the user in a particular room. |
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. |
boolean |
isJoined()
Returns true if the user is currently present in one or more rooms. |
void |
process(IQ packet)
|
void |
process(Message packet)
This method does all packet routing in the chat server. |
void |
process(Packet packet)
Process an XMPP packet. |
void |
process(Presence packet)
|
void |
removeRole(String roomName)
Removes the role of the user in a particular room. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
Note: PREREQUISITE: A lock on this object has already been obtained.
roomName
- The name of the room we're being removedpublic long getLastPacketTime()
public JID getAddress()
getAddress
in interface MUCUser
public void process(Packet packet) throws UnauthorizedException, PacketException
ChannelHandler
process
in interface ChannelHandler
packet
- a packet to process.
UnauthorizedException
- if not allowed to process the packet.
PacketException
- thrown if the packet is malformed (results in the sender's
session being shutdown).public void process(Message packet)
packet
- The packet to route.public void process(IQ packet)
public void process(Presence packet)
|
Openfire 3.4.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |