You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/02/14 17:04:57 UTC
svn commit: r507594 -
/webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java
Author: danj
Date: Wed Feb 14 08:04:56 2007
New Revision: 507594
URL: http://svn.apache.org/viewvc?view=rev&rev=507594
Log:
Overloaded publish() method so that it can take any POJO and use Serializer to convert it to XML.
Modified:
webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java
Modified: webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java?view=diff&rev=507594&r1=507593&r2=507594
==============================================================================
--- webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java (original)
+++ webservices/muse/trunk/modules/muse-wsn-api/src/org/apache/muse/ws/notification/NotificationProducer.java Wed Feb 14 08:04:56 2007
@@ -217,6 +217,31 @@
*/
void publish(QName topicName, XmlSerializable content)
throws SoapFault;
+
+ /**
+ *
+ * This is a convenience method that calls publish(QName, Element) after
+ * the given content object has been serialized to XML using the Muse
+ * serializer framework.
+ *
+ * @param topicName
+ * The WS-N topic associated with the message. This is optional (it
+ * can be null).
+ *
+ * @param contentName
+ * The name of the root element of the payload. This will be
+ * passed to Serializer.toXML() when converting the content
+ * value to XML.
+ *
+ * @param content
+ * The value that will be converted to XML and then put under the
+ * wsnt:Message section of the notification message. This is also
+ * called the 'payload'.
+ *
+ *
+ */
+ void publish(QName topicName, QName contentName, Object content)
+ throws SoapFault;
/**
*
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org