|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ChatChannel is the interface to all chat channels in KoSI.
ChangeLog:
$Log: ChatChannel.java,v $ Revision 1.2 2001/06/04 14:21:10 jiriki Made source more comliant to coding guidelines.
Field Summary | |
static int |
ACTION
Indicates a Action message. |
static int |
SAY
Indicates a normal text message. |
Method Summary | |
void |
addChatListener(ChatListener listener)
Adds a ChatListener to this channel. |
java.lang.String[] |
getUserNames()
Returns a list of the users currently in the chat channel. |
void |
removeChatListener(ChatListener listener,
java.lang.String reason)
Removes a ChatListener from the listener list. |
void |
sendMessage(java.lang.String msg,
int type)
Sends a message to the channel. |
Field Detail |
public static final int ACTION
public static final int SAY
Method Detail |
public void addChatListener(ChatListener listener) throws java.rmi.RemoteException, InvalidSessionException
listener
- the listener to be added to the channel.java.rmi.RemoteException
- if a RemoteCall to this channel fails.InvalidSessionException
- If the session of the invoker
of this method was invalid.public void removeChatListener(ChatListener listener, java.lang.String reason) throws java.rmi.RemoteException
listener
- the listener to be removed.reason
- the reason for removeing the listener.java.rmi.RemoteException
- if a RemoteCall to this channel fails.public void sendMessage(java.lang.String msg, int type) throws java.rmi.RemoteException, ChatException, InvalidSessionException, java.security.AccessControlException
msg
- the message to be sendtype
- the type of this message. Possible values are the
constants in this class.java.rmi.RemoteException
- if a RemoteCall to this channel fails.java.security.AccessControlException
- if the caller is not allowed to
send a message.InvalidSessionException
- If the session of this
method's invoker was invalid.ChatException
- If the message is sent by a read only
user or by a user who is not member of the channel.public java.lang.String[] getUserNames() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a RemoteCall to this channel fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |