com.ibm.websphere.sib.wsn
Class NotificationMessage
- java.lang.Object
-
- 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:- An endpoint reference for the subscription that is associated with the message (optional)
- A topic expression describing the topic associated with the message (optional)
- An endpoint reference for the producer of the message (optional)
- The message contents
-
-
Constructor Summary
Constructors Constructor and Description NotificationMessage(javax.xml.soap.SOAPElement messageContents)
Construct an instance with the specified message contents
-
Method Summary
Methods Modifier and Type Method and Description javax.xml.soap.SOAPElement
getMessageContents()
Get the message contents as a SOAPElementEndpointReference
getProducerReference()
Get the endpoint reference for the producer associated with the messageEndpointReference
getSubscriptionReference()
Get the endpoint reference for the subscription associated with the messageTopicExpression
getTopic()
Get the topic expression associated with the messagevoid
setMessageContents(javax.xml.soap.SOAPElement messageContents)
Set the message contents as a SOAPElementvoid
setProducerReference(EndpointReference producerReference)
Set the endpoint reference for the producer associated with the messagevoid
setSubscriptionReference(EndpointReference subscriptionReference)
Set the endpoint reference for the subscription associated with the messagevoid
setTopic(TopicExpression topic)
Set the topic expression associated with the message
-
-
-
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
-
-