com.universaldevices.upnp
Class UDIEventProcessor

java.lang.Object
  extended by com.universaldevices.upnp.UDIEventProcessor

public abstract class UDIEventProcessor
extends java.lang.Object

Abstract definition of a class responsible for processing Events scoped to a particular Web Service.


Constructor Summary
UDIEventProcessor()
           
 
Method Summary
abstract  void addEventListener(UDIEventListener listener)
          Adds a listener for events given to this event processor.
abstract  boolean isOurEvent(java.lang.String control)
          Return true if the specified event is recognized by this class.
abstract  void processEvent(UDProxyDevice device, java.lang.String control, java.lang.String action, XMLElement ei)
          Process the event by providing the appropriate callback to the given listener.
abstract  void removeEventListener(UDIEventListener listener)
          Removes a listener for events given to this event processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDIEventProcessor

public UDIEventProcessor()
Method Detail

isOurEvent

public abstract boolean isOurEvent(java.lang.String control)
Return true if the specified event is recognized by this class.

Parameters:
control - The event ID
Returns:
Return true if the specified event is recognized by this class.

processEvent

public abstract void processEvent(UDProxyDevice device,
                                  java.lang.String control,
                                  java.lang.String action,
                                  XMLElement ei)
Process the event by providing the appropriate callback to the given listener.

Parameters:
device -
control -
action -
ei -

addEventListener

public abstract void addEventListener(UDIEventListener listener)
Adds a listener for events given to this event processor.

Parameters:
listener -

removeEventListener

public abstract void removeEventListener(UDIEventListener listener)
Removes a listener for events given to this event processor.

Parameters:
listener -