cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1493093 - /cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java
Date Fri, 14 Jun 2013 14:37:34 GMT
Author: dkulp
Date: Fri Jun 14 14:37:34 2013
New Revision: 1493093

URL: http://svn.apache.org/r1493093
Log:
Fix wseventing sample compile problem

Modified:
    cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java

Modified: cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java?rev=1493093&r1=1493092&r2=1493093&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/ws_eventing/src/main/java/demo/wseventing/CreateSubscriptionServlet.java
Fri Jun 14 14:37:34 2013
@@ -33,12 +33,12 @@ import javax.xml.datatype.DatatypeConfig
 
 import org.apache.commons.lang.StringEscapeUtils;
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
-import org.apache.cxf.ws.eventing.AttributedURIType;
+import org.apache.cxf.ws.addressing.AttributedURIType;
+import org.apache.cxf.ws.addressing.EndpointReferenceType;
 import org.apache.cxf.ws.eventing.DeliveryType;
-import org.apache.cxf.ws.eventing.EndpointReferenceType;
 import org.apache.cxf.ws.eventing.ExpirationType;
 import org.apache.cxf.ws.eventing.FilterType;
-import org.apache.cxf.ws.eventing.NotifyTo;
+import org.apache.cxf.ws.eventing.ObjectFactory;
 import org.apache.cxf.ws.eventing.Subscribe;
 import org.apache.cxf.ws.eventing.SubscribeResponse;
 import org.apache.cxf.ws.eventing.eventsource.EventSourceEndpoint;
@@ -104,8 +104,7 @@ public class CreateSubscriptionServlet e
         eventSinkAddr.setValue(targetURL);
         eventSink.setAddress(eventSinkAddr);
         sub.setDelivery(new DeliveryType());
-        sub.getDelivery().getContent().add(new NotifyTo());
-        ((NotifyTo)sub.getDelivery().getContent().get(0)).setValue(eventSink);
+        sub.getDelivery().getContent().add(new ObjectFactory().createNotifyTo(eventSink));
 
         // filter
         if (filter != null && filter.length() > 0) {



Mime
View raw message