at.ac.tuwien.infosys.sm4all.copal.rest.model
Class RESTfulListener

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.listener.BaseListener
      extended by at.ac.tuwien.infosys.sm4all.copal.rest.model.RESTfulListener
All Implemented Interfaces:
ContextListener

public class RESTfulListener
extends BaseListener

ContextListener that is used by REST service to listen on and publish events remotely.

Author:
sanjin

Constructor Summary
RESTfulListener(java.lang.String name, java.net.URL url)
          Creates an instance of RESTful ContextListener that has specified name and publishes each received event to specified URL.
 
Method Summary
 void onEvent(ContextEvent event)
          This method is called when a ContextEvent occurs for which this listener has been register to be notified.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.listener.BaseListener
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTfulListener

public RESTfulListener(java.lang.String name,
                       java.net.URL url)
Creates an instance of RESTful ContextListener that has specified name and publishes each received event to specified URL.

Parameters:
name - the name.
url - the URL where to publish received events.
Method Detail

onEvent

public void onEvent(ContextEvent event)
Description copied from interface: ContextListener
This method is called when a ContextEvent occurs for which this listener has been register to be notified.

Parameters:
event - the occurred ContextEvent.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.