Examples of TopicExpressionType


Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.TopicExpressionType

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BadSector message is available.
      GetCurrentMessage  request = new GetCurrentMessage(  );
      TopicExpressionType topic = new TopicExpressionType(  );
      topic.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      topic.set_any( this.buildTopicExpressionTypeAny( badSectorQName ) );
      request.setTopic( topic );
      GetCurrentMessageResponse messageResponse = m_stub.getCurrentMessage( request );
      assertNotNull( messageResponse );
      MessageElement[] responseElements = messageResponse.get_any(  );
      assertNotNull( responseElements );
View Full Code Here

Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.TopicExpressionType

      //validate the incoming notification is really in there!
      validateNotificationMessage( incomingMessage );

      // Call GetCurrentMessage to assure that the BlockSize message is available.
      GetCurrentMessage  request = new GetCurrentMessage(  );
      TopicExpressionType topic = new TopicExpressionType(  );
      topic.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      topic.set_any( this.buildTopicExpressionTypeAny( ExampleConstants.RESOURCE_PROP_QNAME_BLOCK_SIZE ) );
      request.setTopic( topic );
      GetCurrentMessageResponse messageResponse = m_stub.getCurrentMessage( request );
      assertNotNull( messageResponse );
      MessageElement[] responseElements = messageResponse.get_any(  );
      assertNotNull( responseElements );
View Full Code Here

Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.TopicExpressionType

      props.set_any( prop );
      epr.setReferenceProperties( props );
      request.setConsumerReference( epr );

      // Build the TopicExpressionType for the request.
      TopicExpressionType tet = new TopicExpressionType(  );

      // Currently on the Simple dialect is supported.
      tet.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      tet.set_any( this.buildTopicExpressionTypeAny( propQname ) );
      request.setTopicExpression( tet );

      // Setup other subscription information.
      Calendar terminationTime = Calendar.getInstance(  );
      terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour
View Full Code Here

Examples of axis.com.ibm.www.xmlns.stdwip.web_services.WS_BaseNotification.TopicExpressionType

         consumerEprForStub.setReferenceProperties( props );
       */
      request.setConsumerReference( consumerEprForStub );

      // Set up the request to ask for a subscription to the change notification of the given Resource Property
      TopicExpressionType tet = new TopicExpressionType(  );
      tet.setDialect( new URI( TopicsConstants.DIALECT_TOPIC_EXPRESSION_SIMPLE ) );
      tet.set_any( new MessageElement[]
                   {
                      new MessageElement( SensorWsdmServiceWSResource.PropertyQNames.TEMPERATURE )
                   } );
      request.setTopicExpression( tet );

View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

      boolean         isValid = false;

      for ( int i = 0; i < topics.length; i++ )
      {
         TopicExpressionType validTopic = topics[i].getTopic(  );
         isValid = XmlBeansUtils.compareTopics( validTopic, topic );

         if ( isValid )
         {
            break;
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

   {
      String       id  = "http://subscription/" + num;
      Subscription sub = new Subscription( id );

      // set a simple topic
      TopicExpressionType topicExp = sub.getResourceProps(  ).getTopicExpression(  );

      MemorySubscriptionManagerTestCase.setupTopicExpressionType( topicExp, "mazzTopic" );

      // expires in the future
      Calendar termination = Calendar.getInstance(  );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

   {
      String       id  = "http://subscription/" + num;
      Subscription sub = new Subscription( id );

      // set a simple topic
      TopicExpressionType topicExp = sub.getResourceProps(  ).getTopicExpression(  );

      setupTopicExpressionType( topicExp, "mazztopic" );

      // expires in the future
      Calendar termination = Calendar.getInstance(  );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

    * @return The newly created and registered TopicExpressionType.
    */
   protected TopicExpressionType registerBaseNotifTopic( String targetNamespace,
                                                         String name )
   {
      TopicExpressionType topicExpressionType;

      try
      {
         topicExpressionType = getExistingTopic( targetNamespace, name );
      }
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

                                                 String name )
   throws InvalidResourcePropertyQNameFaultException,
          Exception
   {
      TopicDocument       doc   = TopicDocument.Factory.newInstance(  );
      TopicExpressionType topic = doc.addNewTopic(  );
      XmlBeansUtils.setupTopicExpressionType( namespace, name, topic );
      ResourcePropertiesManager rp_mgr = this.getPropertiesManager(  );

      SOAPElement[]             wsntTopics =
         rp_mgr.getResourceProperty( BaseNotification10Constants.RESOURCE_PROP_QNAME_TOPIC );

      for ( int i = 0; i < wsntTopics.length; i++ )
      {
         SOAPElement         topicElement = wsntTopics[i];
         XmlObject           obj = XmlBeansUtils.toXmlObject( topicElement );

         TopicExpressionType existingTopic = ( (TopicDocument) obj.changeType( TopicDocument.type ) ).getTopic(  );

         if ( XmlBeansUtils.compareTopics( existingTopic, topic ) )
         {
            return existingTopic;
         }
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType

    * @return the given <code>sub</code>
    */
   protected Subscription setTopic( Subscription sub,
                                    String       topicName )
   {
      TopicExpressionType topicExp = sub.getResourceProps(  ).getTopicExpression(  );

      MemorySubscriptionManagerTestCase.setupTopicExpressionType( topicExp, topicName );

      return sub;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.