|
||||||||||
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
public class 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(Element root)
|
|
SimpleNotificationMessage(QName topicPath)
|
Method Summary | |
---|---|
void |
addMessageContent(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,
Object content)
This method allows you to add message content that has not yet been serialized into XML. |
Element |
getMessageContent(QName qname)
|
Object |
getMessageContent(QName qname,
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. |
Collection |
getMessageContentNames()
|
EndpointReference |
getProducerReference()
|
EndpointReference |
getSubscriptionReference()
|
QName |
getTopic()
|
String |
getTopicDialect()
|
void |
setProducerReference(EndpointReference producer)
|
void |
setSubscriptionReference(EndpointReference subscription)
|
void |
setTopic(QName topicPath)
|
void |
setTopicDialect(String dialect)
|
String |
toString()
|
Element |
toXML()
Converts this object into an XML representation, as defined by its related schema or specification. |
Element |
toXML(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(Element root) throws SoapFault
root
- A DOM Element representing a WS-N SimpleNotificationMessage
SoapFault
public SimpleNotificationMessage(QName topicPath)
Method Detail |
---|
public void addMessageContent(Element content)
NotificationMessage
addMessageContent
in interface NotificationMessage
public void addMessageContent(QName qname, Object content) throws SoapFault
NotificationMessage
addMessageContent
in interface NotificationMessage
SoapFault
Serializer
public Element getMessageContent(QName qname)
getMessageContent
in interface NotificationMessage
public Object getMessageContent(QName qname, Class type) throws SoapFault
NotificationMessage
getMessageContent
in interface NotificationMessage
SoapFault
public Collection getMessageContentNames()
getMessageContentNames
in interface NotificationMessage
public EndpointReference getProducerReference()
getProducerReference
in interface NotificationMessage
public EndpointReference getSubscriptionReference()
getSubscriptionReference
in interface NotificationMessage
public QName getTopic()
getTopic
in interface NotificationMessage
public String getTopicDialect()
getTopicDialect
in interface NotificationMessage
WstConstants.CONCRETE_TOPIC_URI
public void setProducerReference(EndpointReference producer)
setProducerReference
in interface NotificationMessage
public void setSubscriptionReference(EndpointReference subscription)
setSubscriptionReference
in interface NotificationMessage
public void setTopic(QName topicPath)
setTopic
in interface NotificationMessage
public void setTopicDialect(String dialect) throws TopicExpressionDialectUnknownFault
setTopicDialect
in interface NotificationMessage
TopicExpressionDialectUnknownFault
public String toString()
toString
in class Object
public Element toXML()
XmlSerializable
toXML
in interface XmlSerializable
public Element toXML(Document doc)
XmlSerializable
toXML
in interface XmlSerializable
doc
- 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 |