org.vrspace.server.filter
Class ActiveClientFilter

java.lang.Object
  extended byorg.vrspace.server.filter.VRObjectFilter
      extended byorg.vrspace.server.filter.ActiveClientFilter
All Implemented Interfaces:
ObjectFilter

public class ActiveClientFilter
extends VRObjectFilter

This filter returns true if Client is on-line


Constructor Summary
ActiveClientFilter()
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean testVRObject(VRObject o, Client c)
          Return true if this client should see the object
 
Methods inherited from class org.vrspace.server.filter.VRObjectFilter
process, test, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActiveClientFilter

public ActiveClientFilter()
Method Detail

testVRObject

public boolean testVRObject(VRObject o,
                            Client c)
Description copied from class: VRObjectFilter
Return true if this client should see the object

Specified by:
testVRObject in class VRObjectFilter
Returns:
!(o instanceof Client) || ((Client) o).isOnline()

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class VRObjectFilter