Class JDPServerListener

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----JDPServerListener

public class JDPServerListener
extends Thread
Class JDPServerListener represents a class to listen for requests from the server.


Constructor Index

 o JDPServerListener(JDPUser)
Creates a Listener to listen for requests from the server.

Method Index

 o deregisterRequest(Component)
Deregister a component so it is no longer receives events from the server.
 o registerForRequest(String, Component)
Register a component to listen for events of a particular type.
 o run()

Constructors

 o JDPServerListener
 public JDPServerListener(JDPUser user)
Creates a Listener to listen for requests from the server.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.

Methods

 o run
 public void run()
Overrides:
run in class Thread
 o registerForRequest
 public synchronized void registerForRequest(String requestName,
                                             Component listener)
Register a component to listen for events of a particular type.

Parameters:
requestName - the type of event to listen for.
listener - the component to be notified when the event occurs
 o deregisterRequest
 public synchronized void deregisterRequest(Component listener)
Deregister a component so it is no longer receives events from the server.

Parameters:
listener - the component to deregister.