IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.sib.wsn
Class NotificationMessage

java.lang.Object
  extended by com.ibm.websphere.sib.wsn.NotificationMessage

public class NotificationMessage
extends java.lang.Object

This class represents the NotificationMessageHolderType type in the WS-Notification Base Notification schema. The class encapsulates a notification message published by a WS-Notification producer. The notification message contains:


Constructor Summary
NotificationMessage(javax.xml.soap.SOAPElement messageContents)
          Construct an instance with the specified message contents
 
Method Summary
 javax.xml.soap.SOAPElement getMessageContents()
          Get the message contents as a SOAPElement
 EndpointReference getProducerReference()
          Get the endpoint reference for the producer associated with the message
 EndpointReference getSubscriptionReference()
          Get the endpoint reference for the subscription associated with the message
 TopicExpression getTopic()
          Get the topic expression associated with the message
 void setMessageContents(javax.xml.soap.SOAPElement messageContents)
          Set the message contents as a SOAPElement
 void setProducerReference(EndpointReference producerReference)
          Set the endpoint reference for the producer associated with the message
 void setSubscriptionReference(EndpointReference subscriptionReference)
          Set the endpoint reference for the subscription associated with the message
 void setTopic(TopicExpression topic)
          Set the topic expression associated with the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationMessage

public NotificationMessage(javax.xml.soap.SOAPElement messageContents)
Construct an instance with the specified message contents

Parameters:
messageContents - The contents of the notification message as a SOAPElement
Method Detail

getSubscriptionReference

public EndpointReference getSubscriptionReference()
Get the endpoint reference for the subscription associated with the message

Returns:
The endpoint reference or null if not included in the notification message

setSubscriptionReference

public void setSubscriptionReference(EndpointReference subscriptionReference)
Set the endpoint reference for the subscription associated with the message

Parameters:
subscriptionReference - The endpoint reference

getTopic

public TopicExpression getTopic()
Get the topic expression associated with the message

Returns:
The topic expression

setTopic

public void setTopic(TopicExpression topic)
Set the topic expression associated with the message

Parameters:
topic - The topic expression

getProducerReference

public EndpointReference getProducerReference()
Get the endpoint reference for the producer associated with the message

Returns:
The endpoint reference or null if not included in the notification message

setProducerReference

public void setProducerReference(EndpointReference producerReference)
Set the endpoint reference for the producer associated with the message

Parameters:
producerReference - The endpoint reference

getMessageContents

public javax.xml.soap.SOAPElement getMessageContents()
Get the message contents as a SOAPElement

Returns:
The message contents

setMessageContents

public void setMessageContents(javax.xml.soap.SOAPElement messageContents)
Set the message contents as a SOAPElement

Parameters:
messageContents - The message contents

IBM WebSphere Application ServerTM
Release 8