fr.cnes.sitools.notification
Class ObserverResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.notification.NotificationAbstractResource
                  extended by fr.cnes.sitools.notification.ObserverResource

public final class ObserverResource
extends NotificationAbstractResource

Resource for managing observers subscription

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ObserverResource()
           
 
Method Summary
 org.restlet.representation.Representation addObserver(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Add an observer
 org.restlet.representation.Representation deleteObserver(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Delete an obsever
 void describeDelete(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
           
 void describePost(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
           
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.notification.NotificationAbstractResource
getNotificationApplication, getObservableUUID, getObserverUUID
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObserverResource

public ObserverResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

addObserver

@Post
public org.restlet.representation.Representation addObserver(org.restlet.representation.Representation representation,
                                                                  org.restlet.representation.Variant variant)
Add an observer

Parameters:
representation - the representation
variant - the variant
Returns:
Representation

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info,
                         java.lang.String path)

deleteObserver

@Delete
public org.restlet.representation.Representation deleteObserver(org.restlet.representation.Representation representation,
                                                                       org.restlet.representation.Variant variant)
Delete an obsever

Parameters:
representation - the representation
variant - the variant
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info,
                           java.lang.String path)


Copyright © 2010-2013 CNES. All Rights Reserved.