org.vrspace.server.object
Class Chatroom
java.lang.Object
java.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
org.vrspace.server.object.Chatroom
- All Implemented Interfaces:
- java.lang.Cloneable, Owned
- public class Chatroom
- extends OwnedDBObject
Gate to another host. Act as proxy connection.
Fields inherited from class org.vrspace.server.DBObject |
db |
Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
url
public NetResource url
name
public java.lang.String name
author
public java.lang.String author
description
public java.lang.String description
online
public boolean online
- Whether this room is online. Set on last enter attemt, default: true
screen
public java.lang.String screen
maxUsers
public int maxUsers
members
protected java.util.LinkedList members
Chatroom
public Chatroom()
sendEvent
public void sendEvent(Request r)
throws RequestException
- Description copied from class:
OwnedDBObject
- Forwards request r to other clients, listeners added by Dispatcher.
Throws RequestException if request target is another object,
or if event source is not in it's owners list.
- Overrides:
sendEvent
in class OwnedDBObject
- Throws:
RequestException
set_enter
public void set_enter(Request r,
java.lang.String args)
throws java.lang.Exception
- Throws:
java.lang.Exception