|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.muse.ws.notification.impl.SimpleNotificationMessage
SimpleNotificationMessage is Muse's default implementation of the WS-Notification NotificationMessageHolderType type. It provides serialization capabilities for these messages and validation of their contents.
| Constructor Summary | |
|---|---|
SimpleNotificationMessage()
The default constructor provides no initialization, allowing users to create messages in an 'aseembly line' system, where pieces of the messages are added by different components before being published. |
|
SimpleNotificationMessage(org.w3c.dom.Element root)
|
|
SimpleNotificationMessage(QName topicPath)
|
|
| Method Summary | |
|---|---|
void |
addMessageContent(org.w3c.dom.Element content)
This method allows you to add message content in its XML form - the element will be added as the last child under the wsnt:Message part of the notification message. |
void |
addMessageContent(QName qname,
java.lang.Object content)
This method allows you to add message content that has not yet been serialized into XML. |
org.w3c.dom.Element |
getMessageContent(QName qname)
|
java.lang.Object |
getMessageContent(QName qname,
java.lang.Class type)
This is a convenience method that does the same task as getMessageContent(QName) but deserializes the message content into a POJO of the given type before returning it. |
java.util.Collection |
getMessageContentNames()
|
EndpointReference |
getProducerReference()
|
EndpointReference |
getSubscriptionReference()
|
QName |
getTopic()
|
java.lang.String |
getTopicDialect()
|
void |
setProducerReference(EndpointReference producer)
|
void |
setSubscriptionReference(EndpointReference subscription)
|
void |
setTopic(QName topicPath)
|
void |
setTopicDialect(java.lang.String dialect)
|
java.lang.String |
toString()
|
org.w3c.dom.Element |
toXML()
Converts this object into an XML representation, as defined by its related schema or specification. |
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Converts this object into an XML representation, as defined by its related schema or specification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SimpleNotificationMessage()
public SimpleNotificationMessage(org.w3c.dom.Element root)
throws SoapFault
root - A DOM Element representing a WS-N SimpleNotificationMessagepublic SimpleNotificationMessage(QName topicPath)
| Method Detail |
public void addMessageContent(org.w3c.dom.Element content)
NotificationMessage
addMessageContent in interface NotificationMessagecontent -
public void addMessageContent(QName qname,
java.lang.Object content)
throws SoapFault
NotificationMessage
addMessageContent in interface NotificationMessagecontent - qname -
SoapFaultSerializerpublic org.w3c.dom.Element getMessageContent(QName qname)
getMessageContent in interface NotificationMessageqname -
public java.lang.Object getMessageContent(QName qname,
java.lang.Class type)
throws SoapFault
NotificationMessage
getMessageContent in interface NotificationMessageSoapFaultpublic java.util.Collection getMessageContentNames()
getMessageContentNames in interface NotificationMessagepublic EndpointReference getProducerReference()
getProducerReference in interface NotificationMessagepublic EndpointReference getSubscriptionReference()
getSubscriptionReference in interface NotificationMessagepublic QName getTopic()
getTopic in interface NotificationMessagepublic java.lang.String getTopicDialect()
getTopicDialect in interface NotificationMessageWstConstants.CONCRETE_TOPIC_URIpublic void setProducerReference(EndpointReference producer)
setProducerReference in interface NotificationMessagepublic void setSubscriptionReference(EndpointReference subscription)
setSubscriptionReference in interface NotificationMessagepublic void setTopic(QName topicPath)
setTopic in interface NotificationMessage
public void setTopicDialect(java.lang.String dialect)
throws TopicExpressionDialectUnknownFault
setTopicDialect in interface NotificationMessageTopicExpressionDialectUnknownFaultpublic java.lang.String toString()
public org.w3c.dom.Element toXML()
XmlSerializable
toXML in interface XmlSerializablepublic org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
XmlSerializable
toXML in interface XmlSerializabledoc - The DOM Document that will be used to create all of the nodes
in the resulting XML fragment.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||