de.kosi.chat
Class ProxyChatListener

java.lang.Object
  |
  +--de.kosi.chat.ProxyChatListener
All Implemented Interfaces:
ChatListener, java.util.EventListener, java.rmi.Remote

public class ProxyChatListener
extends java.lang.Object
implements ChatListener

This class implements a proxy for the ChatListener. Proxy classes are needed, because the server is not allowed to download code from the client. Therefore no arbitrary classes can be added as listeners. A proxy class does nothing, but forwards all calls to another ChatListener.

Version:
$Revision: 1.1.1.1 $ ($Date: 2001/04/29 18:05:16 $) Log-Entries : $Log: ProxyChatListener.java,v $ Revision 1.1.1.1 2001/04/29 18:05:16 jiriki Imported sources from zola. Revision 1.3 2001/02/09 21:09:05 login - updated documentation !! Revision 1.2 2000/12/21 18:47:54 wombat - Dokumentiert - ThreadPool implementiert
Author:
Niklas, Timo, Ole

Constructor Summary
ProxyChatListener(ChatListener l)
          Creates a new ProxyChatListener.
 
Method Summary
 void handleEvent(ChatEvent event)
          This method handles ChatEvents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyChatListener

public ProxyChatListener(ChatListener l)
Creates a new ProxyChatListener.
Parameters:
l - the ChatListener, all events are forwarded to.
Method Detail

handleEvent

public void handleEvent(ChatEvent event)
                 throws java.rmi.RemoteException
This method handles ChatEvents. All Events are forwarded to another ChatListener.
Specified by:
handleEvent in interface ChatListener
Parameters:
event - the event to be handled.
Throws:
java.rmi.RemoteException - If the listener, the calls are forwarded to, throws a RemoteException.