fr.cnes.sitools.notification.business
Class NotifierFilter
java.lang.Object
  
org.restlet.Restlet
      
org.restlet.routing.Filter
          
fr.cnes.sitools.notification.business.NotifierFilter
- All Implemented Interfaces: 
 - org.restlet.Uniform
 
public class NotifierFilter
- extends org.restlet.routing.Filter
 
The aim is to make the notification as transparent as possible from
 an observable object point of view. 
 
 1. For an application that shows observable we attach a NotifyFilter that watches
 after each request handle if an observable attribute is present in the answer, and if yes
 get this notification object.  
 
 2. For a server resource object, we add in the response attributes a boolean Observable set to true
 and a notification object indicating the observable UUID, a status, and a message for observers.
- Author:
 
  - jp.boignard (AKKA Technologies)
 
 
| Fields inherited from class org.restlet.routing.Filter | 
CONTINUE, SKIP, STOP | 
 
 
| 
Method Summary | 
 void | 
afterHandle(org.restlet.Request request,
            org.restlet.Response response)
 
            | 
 
| Methods inherited from class org.restlet.routing.Filter | 
getNext, handle, hasNext, setNext, setNext, start, stop | 
 
| Methods inherited from class org.restlet.Restlet | 
getApplication, getAuthor, getContext, getDescription, getLogger, getName, getOwner, isStarted, isStopped, setAuthor, setContext, setDescription, setName, setOwner | 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NotifierFilter
public NotifierFilter(org.restlet.Context context)
- Default constructor
- Parameters:
 context - restlet context
 
NotifierFilter
public NotifierFilter(org.restlet.Context context,
                      NotificationManager engine)
- Constructor
- Parameters:
 context - Restlet contextengine - NotificationManager to notifyObservers
 
afterHandle
public final void afterHandle(org.restlet.Request request,
                              org.restlet.Response response)
- Overrides:
 afterHandle in class org.restlet.routing.Filter
 
 
Copyright © 2010-2013 CNES. All Rights Reserved.