Index


Class wsc.Notification

Represents general notifications received.

Class Summary
Constructor Attributes Constructor Name and Description
 
Object that represents a Notification.
Method Summary
Method Attributes Method Name and Description
 
Gets the message content of the notification.
 
Gets the user identity of the notification receiver.
 
Gets the service identity of the subscription.
Class Detail
wsc.Notification()
Object that represents a Notification. For extensibility, developers can implement a class extended from the Notification class, to make it more suitable to handle the notification event types according the Subscribe/Notify application.
wsc.MessageSummary provides an example of extending the Notification class. In a default implementation of wsc.MessageAlertPackage, an object of MessageSummary is created when a notification message is received. This MessageSummary object will be delivered to an application as a parameter in the event handler wsc.Subscription#event:onNotification.
If the received notification messages are not the event type message summary, a Notification class object is created and delivered to application as the parameter in the event handler wsc.Subscription#event:onNotification. This notification object can be used to instantiate the object of the extended class, which may have methods to parse the corresponding type of notification messages.
Method Detail
{JSON} getContent()
Gets the message content of the notification.
Returns:
{JSON} message content

{String} getReceiver()
Gets the user identity of the notification receiver.
Returns:
{String} receiver Identity of the notification receiver

{String} getSender()
Gets the service identity of the subscription.
Returns:
{String} sender Identity of the notification sender.

Copyright © 2005, 2013, Oracle and/or its affiliates. All rights reserved.