org.vrspace.server.object
Class Chatroom

java.lang.Object
  extended byjava.util.Observable
      extended byorg.vrspace.server.VRObject
          extended byorg.vrspace.server.DBObject
              extended byorg.vrspace.server.PublicDBObject
                  extended byorg.vrspace.server.OwnedDBObject
                      extended byorg.vrspace.server.object.Chatroom
All Implemented Interfaces:
java.lang.Cloneable, Owned

public class Chatroom
extends OwnedDBObject

Gate to another host. Act as proxy connection.


Field Summary
 java.lang.String author
           
 java.lang.String description
           
 int maxUsers
           
protected  java.util.LinkedList members
           
 java.lang.String name
           
 boolean online
          Whether this room is online.
 java.lang.String screen
           
 NetResource url
           
 
Fields inherited from class org.vrspace.server.DBObject
db
 
Fields inherited from class org.vrspace.server.VRObject
db_id, primitiveMap, primitives
 
Constructor Summary
Chatroom()
           
 
Method Summary
 void sendEvent(Request r)
          Forwards request r to other clients, listeners added by Dispatcher.
 void set_enter(Request r, java.lang.String args)
           
 
Methods inherited from class org.vrspace.server.OwnedDBObject
addOwner, isOwned, notifyOwners, ownershipRequired, processEvent, removeOwner
 
Methods inherited from class org.vrspace.server.PublicDBObject
setValue
 
Methods inherited from class org.vrspace.server.DBObject
delete, get, put, put
 
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
 

Field Detail

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
Constructor Detail

Chatroom

public Chatroom()
Method Detail

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