Author: ips
Date: Fri Jan 14 17:16:17 2005
New Revision: 125241

URL: http://svn.apache.org/viewcvs?view=rev&rev=125241
Log:

Added:
   
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationConsumerPortType2JavaInfo.java
   
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationProducerPortType2JavaInfo.java
   
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/SubscriptionManagerPortType2JavaInfo.java
Modified:
   
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java
   
incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java
   incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java

Modified: 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java?view=diff&rev=125241&p1=incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java&r1=125240&p2=incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java&r2=125241
==============================================================================
--- 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java
   (original)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/notification/base/Subscription.java
   Fri Jan 14 17:16:17 2005
@@ -49,13 +49,6 @@
     QueryExpressionFilter getSelector();

 

     /**

-     * Get the policy associated with this subscription.

-     *

-     * @return the policy, or null if no policy was specified in the 
subscription

-     */

-    Object getSubscriptionPolicy();

-

-    /**

      * Wrap notification messages in the notify element?

      *

      * @return true (default) if notify should be used, or false if not


Added: 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationConsumerPortType2JavaInfo.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationConsumerPortType2JavaInfo.java?view=auto&rev=125241
==============================================================================
--- (empty file)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationConsumerPortType2JavaInfo.java
     Fri Jan 14 17:16:17 2005
@@ -0,0 +1,57 @@
+/*=============================================================================*

+ *  Copyright 2004 The Apache Software Foundation

+ *

+ *  Licensed under the Apache License, Version 2.0 (the "License");

+ *  you may not use this file except in compliance with the License.

+ *  You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ *  Unless required by applicable law or agreed to in writing, software

+ *  distributed under the License is distributed on an "AS IS" BASIS,

+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ *  See the License for the specific language governing permissions and

+ *  limitations under the License.

+ 
*=============================================================================*/

+package org.apache.ws.notification.tool.v1_2;

+

+import 
org.apache.ws.notification.base.v1_2.porttype.NotificationConsumerPortType;

+import 
org.apache.ws.resource.properties.v1_2.porttype.GetMultipleResourcePropertiesPortType;

+import org.apache.ws.resource.tool.PortType2JavaInfo;

+

+import javax.xml.namespace.QName;

+

+/**

+ * TODO

+ *

+ * @author Ian Springer (ian DOT springer AT hp DOT com)

+ */

+public class NotificationConsumerPortType2JavaInfo implements PortType2JavaInfo

+{

+

+    public QName getName()

+    {

+        return NotificationConsumerPortType.NAME;

+    }

+

+    public String getResourceInterfaceName()

+    {

+        return null;

+    }

+

+    public String getServiceInterfaceName()

+    {

+        return NotificationConsumerPortType.class.getName();

+    }

+

+    public String getResourceTemplateFileName()

+    {

+        return null;

+    }

+

+    public String getServiceTemplateFileName()

+    {

+        return "templates/NotificationConsumerPortType.txt";

+    }

+

+}


Added: 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationProducerPortType2JavaInfo.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationProducerPortType2JavaInfo.java?view=auto&rev=125241
==============================================================================
--- (empty file)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/NotificationProducerPortType2JavaInfo.java
     Fri Jan 14 17:16:17 2005
@@ -0,0 +1,56 @@
+/*=============================================================================*

+ *  Copyright 2004 The Apache Software Foundation

+ *

+ *  Licensed under the Apache License, Version 2.0 (the "License");

+ *  you may not use this file except in compliance with the License.

+ *  You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ *  Unless required by applicable law or agreed to in writing, software

+ *  distributed under the License is distributed on an "AS IS" BASIS,

+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ *  See the License for the specific language governing permissions and

+ *  limitations under the License.

+ 
*=============================================================================*/

+package org.apache.ws.notification.tool.v1_2;

+

+import 
org.apache.ws.notification.base.v1_2.porttype.NotificationProducerPortType;

+import org.apache.ws.resource.tool.PortType2JavaInfo;

+

+import javax.xml.namespace.QName;

+

+/**

+ * TODO

+ *

+ * @author Ian Springer (ian DOT springer AT hp DOT com)

+ */

+public class NotificationProducerPortType2JavaInfo implements PortType2JavaInfo

+{

+

+    public QName getName()

+    {

+        return NotificationProducerPortType.NAME;

+    }

+

+    public String getResourceInterfaceName()

+    {

+        return null;

+    }

+

+    public String getServiceInterfaceName()

+    {

+        return NotificationProducerPortType.class.getName();

+    }

+

+    public String getResourceTemplateFileName()

+    {

+        return null;

+    }

+

+    public String getServiceTemplateFileName()

+    {

+        return "templates/NotificationProducerPortType.txt";

+    }

+

+}


Added: 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/SubscriptionManagerPortType2JavaInfo.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/SubscriptionManagerPortType2JavaInfo.java?view=auto&rev=125241
==============================================================================
--- (empty file)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/notification/tool/v1_2/SubscriptionManagerPortType2JavaInfo.java
      Fri Jan 14 17:16:17 2005
@@ -0,0 +1,56 @@
+/*=============================================================================*

+ *  Copyright 2004 The Apache Software Foundation

+ *

+ *  Licensed under the Apache License, Version 2.0 (the "License");

+ *  you may not use this file except in compliance with the License.

+ *  You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ *  Unless required by applicable law or agreed to in writing, software

+ *  distributed under the License is distributed on an "AS IS" BASIS,

+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ *  See the License for the specific language governing permissions and

+ *  limitations under the License.

+ 
*=============================================================================*/

+package org.apache.ws.notification.tool.v1_2;

+

+import 
org.apache.ws.notification.base.v1_2.porttype.SubscriptionManagerPortType;

+import org.apache.ws.resource.tool.PortType2JavaInfo;

+

+import javax.xml.namespace.QName;

+

+/**

+ * TODO

+ *

+ * @author Ian Springer (ian DOT springer AT hp DOT com)

+ */

+public class SubscriptionManagerPortType2JavaInfo implements PortType2JavaInfo

+{

+

+    public QName getName()

+    {

+        return SubscriptionManagerPortType.NAME;

+    }

+

+    public String getResourceInterfaceName()

+    {

+        return null;

+    }

+

+    public String getServiceInterfaceName()

+    {

+        return SubscriptionManagerPortType.class.getName();

+    }

+

+    public String getResourceTemplateFileName()

+    {

+        return null;

+    }

+

+    public String getServiceTemplateFileName()

+    {

+        return "templates/SubscriptionManagerPortType.txt";

+    }

+

+}


Modified: 
incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java?view=diff&rev=125241&p1=incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java&r1=125240&p2=incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java&r2=125241
==============================================================================
--- 
incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java  
    (original)
+++ 
incubator/hermes/trunk/src/java/org/apache/ws/pubsub/NotificationProducer.java  
    Fri Jan 14 17:16:17 2005
@@ -18,14 +18,40 @@
 import org.apache.axis.message.addressing.EndpointReference;

 

 import java.util.Calendar;

+import java.net.URI;

 

 public interface NotificationProducer

 {

+    /**

+     * Returns this producer's endpoint reference.

+     *

+     * @return this producer's endpoint reference

+     */

     EndpointReference getEPR();

 

+    /**

+     * Subscribe to notifications from this producer.

+     *

+     * @param notificationConsumer

+     * @param filters

+     * @param initialTerminationTime

+     * @param deliveryMode the notification delivery mode, or null to use 
default mode

+     * @param policy a policy to be associated with the subscription, or null 
if no policy should be used

+     *

+     * @return the subscription

+     */

     Subscription subscribe( NotificationConsumer notificationConsumer,

                             Filter filters[],

-                            Calendar initialTerminationTime );

+                            Calendar initialTerminationTime,

+                            URI deliveryMode,

+                            Object policy );

 

-    Object getCurrentMessage( EndpointReference notificationProducerEPR, 
Filter filters[] );

+    /**

+     * Returns the last notification message published for the given set of 
filters.

+     *

+     * @param filters

+     *

+     * @return

+     */

+    Object getCurrentMessage( Filter filters[] );

 }


Modified: incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java
Url: 
http://svn.apache.org/viewcvs/incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java?view=diff&rev=125241&p1=incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java&r1=125240&p2=incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java&r2=125241
==============================================================================
--- incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java      
(original)
+++ incubator/hermes/trunk/src/java/org/apache/ws/pubsub/Subscription.java      
Fri Jan 14 17:16:17 2005
@@ -15,10 +15,8 @@
  */

 package org.apache.ws.pubsub;

 

-import org.apache.axis.message.addressing.EndpointReferenceType;

-

-import java.util.Calendar;

 import java.net.URI;

+import java.util.Calendar;

 

 public interface Subscription

 {

@@ -64,12 +62,10 @@
     void unsubscribe();

 

     /**

-     * Returns a list of any notification filters that are associated

-     * with this subscription. The filters are ordered in the order in

-     * which they will be applied to notifications.

+     * Returns a list of any notification filters that are associated with 
this subscription. The filters are ordered in

+     * the order in which they will be applied to notifications.

      *

-     * @return a list of any notification filters that are associated

-     *         with this subscription

+     * @return a list of any notification filters that are associated with 
this subscription

      */

     Filter getFilters();

 

@@ -81,27 +77,32 @@
     Calendar getCreationTime();

 

     /**

-     * Returns the delivery mode to be used for notifications sent for

-     * this subscription. If null, a delivery mode was not specified,

-     * and a default delivery mode will be used.

+     * Returns the delivery mode to be used for notifications sent for this 
subscription. If null, a delivery mode was

+     * not specified, and a default delivery mode will be used.

      *

-     * @return the delivery mode to be used for notifications sent for

-     *         this subscription

+     * @return the delivery mode to be used for notifications sent for this 
subscription

      */

     URI getDeliveryMode();

 

     /**

-     * Get the consumer endpoint reference associated with this subscription.

+     * Get the notification consumer associated with this subscription.

+     *

+     * @return the notification consumer

+     */

+    NotificationConsumer getNotificationConsumer();

+

+    /**

+     * Get the notification producer associated with this subscription.

      *

-     * @return the consumer endpoint reference

+     * @return the notification producer

      */

-    EndpointReferenceType getConsumerEPR();

+    NotificationProducer getNotificationProducer();

 

     /**

-     * Get the producer endpoint reference associated with this subscription.

+     * Get the policy associated with this subscription.

      *

-     * @return the producer endpoint reference

+     * @return the policy, or null if no policy was specified in the subscribe 
request.

      */

-    EndpointReferenceType getProducerEPR();

+    Object getSubscriptionPolicy();

 

 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to