Package org.apache.ws.notification.topics.impl

Examples of org.apache.ws.notification.topics.impl.SubscriptionTopicListener


      /* EndpointReference consumerReference, EndpointReference producerReference,
         Calendar initialTerminationTime, Object policy, QueryExpression precondition,
         QueryExpression selector, ResourceKey producerKey, String producerHomeLocation,
         TopicExpression topicExpression, boolean useNotify )
         {*/
      SubscriptionTopicListener   lis     = new SubscriptionTopicListener( sub );
      AnyResourcePropertyMetaData anyMeta = new AnyResourcePropertyMetaData( new QName( "foo" ) );

      //need some sort of documenttype
      NotifyDocument                       doc         = NotifyDocument.Factory.newInstance(  );
      XmlBeansResourcePropertySet          set         = new XmlBeansResourcePropertySet( doc );
      XmlBeansResourceProperty             prop        = new XmlBeansResourceProperty( anyMeta, set );
      ResourcePropertyValueChangeTopicImpl topic       = new ResourcePropertyValueChangeTopicImpl( prop );
      TopicListenerTestObj                 testListenr = new TopicListenerTestObj(  );
      topic.addTopicListener( testListenr );
      lis.topicChanged( topic );
   }
View Full Code Here


         }

         throw new SubscribeCreationFailedFaultException( NAMESPACE_SET );
      }

      SubscriptionTopicListener subscriptionTopicListener = new SubscriptionTopicListener( subscription );
      for ( int i = 0; i < topics.length; i++ )
      {
         topics[i].addTopicListener( subscriptionTopicListener );
      }
View Full Code Here

            while ( topicListenerIterator.hasNext(  ) )
            {
               TopicListener listener = (TopicListener) topicListenerIterator.next(  );
               if ( listener instanceof SubscriptionTopicListener )
               {
                  SubscriptionTopicListener lt = (SubscriptionTopicListener) listener;
                  Object                    subKey = lt.getSubscription(  ).getID(  );
                  if ( subKey.equals( m_id ) )
                  {
                     topicListenerIterator.remove(  );
                     removed = true;
                  }
View Full Code Here

                while ( topicListenerIterator.hasNext() )
                {
                    TopicListener listener = (TopicListener) topicListenerIterator.next();
                    if ( listener instanceof SubscriptionTopicListener )
                    {
                        SubscriptionTopicListener lt =
                                (SubscriptionTopicListener) listener;
                        Object subKey =
                                lt.getSubscription().getID();
                        if ( subKey.equals( m_id ) )
                        {
                            topicListenerIterator.remove();
                            removed = true;
                        }
View Full Code Here

            {
                e.printStackTrace( );
            }
            throw new SubscribeCreationFailedFaultException( NAMESPACE_SET );
        }
        SubscriptionTopicListener subscriptionTopicListener = new SubscriptionTopicListener( subscription );
        for ( int i = 0; i < topics.length; i++ )
        {
            topics[i].addTopicListener( subscriptionTopicListener );
        }
        SubscribeResponseDocument subscribeResponseDoc = SubscribeResponseDocument.Factory.newInstance();
View Full Code Here

       /* EndpointReference consumerReference, EndpointReference producerReference,
                                    Calendar initialTerminationTime, Object policy, QueryExpression precondition,
                                    QueryExpression selector, ResourceKey producerKey, String producerHomeLocation,
                                    TopicExpression topicExpression, boolean useNotify )
    {*/
        SubscriptionTopicListener lis = new SubscriptionTopicListener(sub);
        AnyResourcePropertyMetaData anyMeta = new AnyResourcePropertyMetaData(new QName("foo"));

        //need some sort of documenttype
        NotifyDocument doc = NotifyDocument.Factory.newInstance();
        XmlBeansResourcePropertySet set = new XmlBeansResourcePropertySet(doc);
        XmlBeansResourceProperty prop = new XmlBeansResourceProperty(anyMeta,set);
        ResourcePropertyValueChangeTopicImpl topic = new ResourcePropertyValueChangeTopicImpl(prop);
        TopicListenerTestObj testListenr = new TopicListenerTestObj();
        topic.addTopicListener(testListenr);
        lis.topicChanged(topic);
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.notification.topics.impl.SubscriptionTopicListener

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.