Package org.jboss.ws.extensions.eventing.jaxws

Examples of org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType


   {
      try
      {
         DeliveryType delivery = new DeliveryType();
         delivery.setMode(EventingConstants.getDeliveryPush().toString());
         EndpointReferenceType notifyEPR = new EndpointReferenceType();
         AttributedURIType attURI = new AttributedURIType();
         attURI.setValue("http://" + getServerHost() + ":8080/jaxws-wseventing/eventSink");
         notifyEPR.setAddress(attURI);                       
         delivery.setNotifyTo(notifyEPR);
         return delivery;
      }
      catch (Exception e)
      {
View Full Code Here


               throw new SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested filter dialect is not supported.");
         }
      }

      // create subscription
      EndpointReferenceType epr = new EndpointReferenceType();
      AttributedURIType attrURI = new AttributedURIType();
      attrURI.setValue(eventSource.getManagerAddress().toString());
      epr.setAddress(attrURI);
      ReferenceParametersType refParam = new ReferenceParametersType();
      JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
      refParam.getAny().add(idqn);
      epr.setReferenceParameters(refParam);

      Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);

      subscriptionMapping.get(eventSourceNS).add(subscription);
View Full Code Here

               throw new SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested filter dialect is not supported.");
         }
      }

      // create subscription
      EndpointReferenceType epr = new EndpointReferenceType();
      AttributedURIType attrURI = new AttributedURIType();
      attrURI.setValue(eventSource.getManagerAddress().toString());
      epr.setAddress(attrURI);
      ReferenceParametersType refParam = new ReferenceParametersType();
      JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
      refParam.getAny().add(idqn);
      epr.setReferenceParameters(refParam);

      Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);

      subscriptionMapping.get(eventSourceNS).add(subscription);
View Full Code Here

         subscriptionManager = new SubscriptionManager();
         subscriptionManager.registerEventSource(deploymentInfo);
         subscriptionManager.registerEventSource(deploymentInfo);
         subscriptionManager.start();

         eventSinkEndpoint = new EndpointReferenceType();
         AttributedURIType attrURI = new AttributedURIType();
         attrURI.setValue("http://www.other.example.com/OnStormWarning");
         eventSinkEndpoint.setAddress(attrURI);

         eventSourceNS = new URI("http://schemas.xmlsoap.org/ws/2004/08/eventing/Warnings");
View Full Code Here

   // provide logging
   private static final Logger log = Logger.getLogger(SysmonUtil.class);

   public static void printSubscriptionDetails(SubscribeResponse subscribeResponse)
   {
      EndpointReferenceType managerEPR = subscribeResponse.getSubscriptionManager();
      String subscriptionID = subscribeResponse.getSubscriptionId();
      Date expiryTime = subscribeResponse.getExpires();

      log.info("SubscriptionManager " + managerEPR.getAddress());
      log.info("SubscriptionID " + subscriptionID);
      log.info("ExpiryTime " + expiryTime);
   }
View Full Code Here

   {
      try
      {
         DeliveryType delivery = new DeliveryType();
         delivery.setMode(EventingConstants.getDeliveryPush().toString());
         EndpointReferenceType notifyEPR = new EndpointReferenceType();
         AttributedURIType attURI = new AttributedURIType();
         attURI.setValue("http://jboss.org");
         notifyEPR.setAddress(attURI);
         delivery.setNotifyTo(notifyEPR);
         return delivery;
      }
      catch (Exception e)
      {
View Full Code Here

   {
      try
      {
         DeliveryType delivery = new DeliveryType();
         delivery.setMode(EventingConstants.getDeliveryPush().toString());
         EndpointReferenceType notifyEPR = new EndpointReferenceType();
         AttributedURIType attURI = new AttributedURIType();
         attURI.setValue("http://" + getServerHost() + ":8080/jaxws-wseventing/eventSink");
         notifyEPR.setAddress(attURI);                       
         delivery.setNotifyTo(notifyEPR);
         return delivery;
      }
      catch (Exception e)
      {
View Full Code Here

               throw new SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested filter dialect is not supported.");
         }
      }

      // create subscription
      EndpointReferenceType epr = new EndpointReferenceType();
      AttributedURIType attrURI = new AttributedURIType();
      attrURI.setValue(eventSource.getManagerAddress().toString());
      epr.setAddress(attrURI);
      ReferenceParametersType refParam = new ReferenceParametersType();
      JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
      refParam.getAny().add(idqn);
      epr.setReferenceParameters(refParam);

      Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);

      subscriptionMapping.get(eventSourceNS).add(subscription);
View Full Code Here

               throw new SubscriptionError(EventingConstants.CODE_REQUESTED_FILTER_UNAVAILABLE, "The requested filter dialect is not supported.");
         }
      }

      // create subscription
      EndpointReferenceType epr = new EndpointReferenceType();
      AttributedURIType attrURI = new AttributedURIType();
      attrURI.setValue(eventSource.getManagerAddress().toString());
      epr.setAddress(attrURI);
      ReferenceParametersType refParam = new ReferenceParametersType();
      JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
      refParam.getAny().add(idqn);
      epr.setReferenceParameters(refParam);

      Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);

      subscriptionMapping.get(eventSourceNS).add(subscription);
View Full Code Here

/* 334 */         throw new SubscriptionError("FilteringRequestedUnavailable", "The requested filter dialect is not supported.");
/*     */       }
/*     */
/*     */     }
/*     */
/* 339 */     EndpointReferenceType epr = new EndpointReferenceType();
/* 340 */     AttributedURIType attrURI = new AttributedURIType();
/* 341 */     attrURI.setValue(eventSource.getManagerAddress().toString());
/* 342 */     epr.setAddress(attrURI);
/* 343 */     ReferenceParametersType refParam = new ReferenceParametersType();
/* 344 */     JAXBElement idqn = new JAXBElement(new QName("http://schemas.xmlsoap.org/ws/2004/08/eventing", "Identifier"), String.class, generateSubscriptionID().toString());
/* 345 */     refParam.getAny().add(idqn);
/* 346 */     epr.setReferenceParameters(refParam);
/*     */
/* 348 */     Subscription subscription = new Subscription(eventSource.getNameSpace(), epr, notifyTo, endTo, expires, filter);
/*     */
/* 350 */     ((List)this.subscriptionMapping.get(eventSourceNS)).add(subscription);
/*     */
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.eventing.jaxws.EndpointReferenceType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.