|
Babylon Java Chat | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectBabylonChatRoom
public class BabylonChatRoom
A class to represent chat rooms. Used by both the server and the client,
this class contains the name of the chat room and other attributes,
plus lists of users in the room, users invited to the room, users banned
from the room, and the drawing canvas history.
| Field Summary | |
|---|---|
protected java.util.Vector |
bannedUserNames
|
protected java.util.Vector |
canvasHistory
|
protected java.lang.String |
creatorName
|
protected java.util.Vector |
invitedUsers
|
protected java.lang.String |
name
|
protected java.lang.String |
password
|
protected boolean |
priv
|
protected java.util.Vector |
users
|
| Constructor Summary | |
|---|---|
BabylonChatRoom(java.lang.String n,
java.lang.String c,
boolean pr,
java.lang.String pa)
|
|
| Method Summary | |
|---|---|
protected void |
addUser(BabylonServerConnection newConnection)
Add a client to this chatroom |
protected void |
allowUserName(java.lang.String userName)
Remove the user name from the list of banned users |
protected void |
banUserName(java.lang.String userName)
Add the user name to the list of banned users. |
protected void |
finalize()
|
protected void |
inviteUser(int userId)
Invite a client to this chatroom |
protected void |
log(java.lang.String logText)
|
protected void |
removeUser(BabylonServerConnection oldConnection)
Remove a client from this chatroom |
protected void |
setLogging(boolean onOff)
Turn logging on or off for this chat room |
protected void |
uninviteUser(int userId)
Remove the user id from the list of invited users |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String creatorName
protected boolean priv
protected java.lang.String password
protected java.util.Vector users
protected java.util.Vector canvasHistory
protected java.util.Vector invitedUsers
protected java.util.Vector bannedUserNames
| Constructor Detail |
|---|
public BabylonChatRoom(java.lang.String n,
java.lang.String c,
boolean pr,
java.lang.String pa)
| Method Detail |
|---|
protected void addUser(BabylonServerConnection newConnection)
protected void removeUser(BabylonServerConnection oldConnection)
protected void inviteUser(int userId)
protected void uninviteUser(int userId)
protected void banUserName(java.lang.String userName)
protected void allowUserName(java.lang.String userName)
protected void setLogging(boolean onOff)
throws java.io.IOException
java.io.IOException
protected void log(java.lang.String logText)
throws java.io.IOException
java.io.IOExceptionprotected void finalize()
finalize in class java.lang.Object
|
Babylon Java Chat | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||