fr.cnes.sitools.notification.model
Class RestletObserver

java.lang.Object
  extended by fr.cnes.sitools.notification.model.RestletObserver
All Implemented Interfaces:
java.io.Serializable

public final class RestletObserver
extends java.lang.Object
implements java.io.Serializable

RestletObserver acts like an observer proxy to send notify event by a Restlet request to a distant resource with the specified method. A notify event is a Notification.class object.

Author:
jp.boignard (AKKA Technologies)
See Also:
Serialized Form

Constructor Summary
RestletObserver()
          Default constructor
 
Method Summary
 java.lang.String getMediaTypeToNotify()
          Gets the mediaTypeToNotify value
 java.lang.String getMethodToNotify()
          Gets the methodToNotify value
 java.lang.String getUriToNotify()
          Gets the uriToNotify value
 java.lang.String getUuid()
          Gets the uuid value
 void setMediaTypeToNotify(java.lang.String mediaTypeToNotify)
          Sets the value of mediaTypeToNotify
 void setMethodToNotify(java.lang.String methodToNotify)
          Sets the value of methodToNotify
 void setUriToNotify(java.lang.String uriToNotify)
          Sets the value of uriToNotify
 void setUuid(java.lang.String uuid)
          Sets the value of uuid
 void update(RestletObservable o, java.lang.Object arg)
          Update to notify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestletObserver

public RestletObserver()
Default constructor

Method Detail

getUuid

public java.lang.String getUuid()
Gets the uuid value

Returns:
the uuid

setUuid

public void setUuid(java.lang.String uuid)
Sets the value of uuid

Parameters:
uuid - the uuid to set

getUriToNotify

public java.lang.String getUriToNotify()
Gets the uriToNotify value

Returns:
the uriToNotify

setUriToNotify

public void setUriToNotify(java.lang.String uriToNotify)
Sets the value of uriToNotify

Parameters:
uriToNotify - the uriToNotify to set

getMethodToNotify

public java.lang.String getMethodToNotify()
Gets the methodToNotify value

Returns:
the methodToNotify

setMethodToNotify

public void setMethodToNotify(java.lang.String methodToNotify)
Sets the value of methodToNotify

Parameters:
methodToNotify - the methodToNotify to set

getMediaTypeToNotify

public java.lang.String getMediaTypeToNotify()
Gets the mediaTypeToNotify value

Returns:
the mediaTypeToNotify

setMediaTypeToNotify

public void setMediaTypeToNotify(java.lang.String mediaTypeToNotify)
Sets the value of mediaTypeToNotify

Parameters:
mediaTypeToNotify - the mediaTypeToNotify to set

update

public void update(RestletObservable o,
                   java.lang.Object arg)
Update to notify

Parameters:
o - restlet observable
arg - object


Copyright © 2010-2013 CNES. All Rights Reserved.