01: /**
02: * $RCSfile$
03: * $Revision: 569 $
04: * $Date: 2004-12-01 15:31:18 -0300 (Wed, 01 Dec 2004) $
05: *
06: * Copyright (C) 2004 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.openfire.muc;
11:
12: import org.jivesoftware.openfire.ChannelHandler;
13: import org.xmpp.packet.JID;
14:
15: /**
16: * The chat user is a separate user abstraction for interacting with
17: * the chat server. Centralizing chat users to the Jabber entity that
18: * sends and receives the chat messages allows us to create quality of
19: * service, authorization, and resource decisions on a real-user basis.
20: * <p/>
21: * Most chat users in a typical s2s scenario will not be local users.
22: * </p><p>
23: * MUCUsers play one or more roles in one or more chat rooms on the
24: * server.
25: *
26: * @author Gaston Dombiak
27: */
28: public interface MUCUser extends ChannelHandler {
29:
30: /**
31: * Obtain the address of the user. The address is used by services like the core
32: * server packet router to determine if a packet should be sent to the handler.
33: * Handlers that are working on behalf of the server should use the generic server
34: * hostname address (e.g. server.com).
35: *
36: * @return the address of the packet handler.
37: */
38: public JID getAddress();
39: }
|