You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by James Mason <ma...@apache.org> on 2004/08/06 16:30:47 UTC

Need documentation for NotificationListener

Daniel,
Can you provide any documentation for NotificationListener.subscribe()? 
Specifically what the method parameter is and what the valid values are, 
as well as the effect of notificationDelay.

What units the time parameters are in would be useful too :).

Thanks,
James

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Need documentation for NotificationListener

Posted by James Mason <ma...@apache.org>.
Awesome, thanks.

Question about the notification type. What difference does it make :)? I 
need to get notifications any time something changes 
(add/change/delete). I've create an event that generates this 
information, but I see no way to indicate that the client is interested 
in this event. Is this what what "method" is for, or is it something 
else? Do I just need to create four subscriptions, one for each method, 
and not bother with the event type I created?

-James

Stefan Lützkendorf wrote:

> James,
> 
> @param method the "notification type", determines for what events do you
>    want do subscribe. one of  "Update", "Update/newmember", "Delete", 
> "Move"
>    (I dont know whether we are support all)
> @param uri the resource for that you subscribe
> @param depth the depth of the collection tree that you want to observe
> @param lifetime the duration for that you want to observe (in seconds)
> @param notificationDelay the time the server waits before it sends a notify
>    message to the host provided in the constructor  (in seconds)
> @param listener the Listner that is called on incomming fotifications
> @param credentials credentials for authntication on the server observed
> 
> @seealso WebdavResource#subscribeMethod
> @seealso 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_webdav_subscribe.asp 
> 
> 
> Regads, Stefan
> 
> James Mason wrote:
> 
>> Daniel,
>> Can you provide any documentation for 
>> NotificationListener.subscribe()? Specifically what the method 
>> parameter is and what the valid values are, as well as the effect of 
>> notificationDelay.
>>
>> What units the time parameters are in would be useful too :).
>>
>> Thanks,
>> James
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Need documentation for NotificationListener

Posted by Stefan Lützkendorf <lu...@apache.org>.
James,

@param method the "notification type", determines for what events do you
    want do subscribe. one of  "Update", "Update/newmember", "Delete", "Move"
    (I dont know whether we are support all)
@param uri the resource for that you subscribe
@param depth the depth of the collection tree that you want to observe
@param lifetime the duration for that you want to observe (in seconds)
@param notificationDelay the time the server waits before it sends a notify
    message to the host provided in the constructor  (in seconds)
@param listener the Listner that is called on incomming fotifications
@param credentials credentials for authntication on the server observed

@seealso WebdavResource#subscribeMethod
@seealso http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_webdav_subscribe.asp

Regads, Stefan

James Mason wrote:
> Daniel,
> Can you provide any documentation for NotificationListener.subscribe()? 
> Specifically what the method parameter is and what the valid values are, 
> as well as the effect of notificationDelay.
> 
> What units the time parameters are in would be useful too :).
> 
> Thanks,
> James
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org