Examples of TopicDocument


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

    * @throws Exception
    */
   public void testSubscribeToTopicWithInvalidName(  )
   throws Exception
   {
      TopicDocument       topicDoc = createTopicWithInvalidName(  );
      SubscriptionRequest sr = createSubscriptionRequest( topicDoc );

      try
      {
         m_notificationManager.subscribe( sr );
View Full Code Here

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

      return message;
   }

   private TopicDocument createBlockSizeTopic(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );

      setupTopicDocument( topicDoc,
                          "http://com.xyz",
                          new String[]
                          {
View Full Code Here

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

      return topicDoc;
   }

   private TopicDocument createManufacturerTopic(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );
      setupTopicDocument( topicDoc,
                          "http://com.xyz",
                          new String[]
                          {
                             "Manufacturer"
View Full Code Here

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

      return topicDoc;
   }

   private TopicDocument createMuwsResourceStateTopic(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );

      setupTopicDocument( topicDoc,
                          "http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema",
                          new String[]
                          {
View Full Code Here

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

      return sr;
   }

   private TopicDocument createTopicWithInvalidDialect(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );

      setupTopicDocument( topicDoc,
                          "http://com.xyz",
                          new String[]
                          {
                             "BlockSize"
                          } );
      topicDoc.getTopic(  ).setDialect( "http://foo" );

      return topicDoc;
   }
View Full Code Here

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

      return topicDoc;
   }

   private TopicDocument createTopicWithInvalidNS(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );

      setupTopicDocument( topicDoc,
                          "http://com.abc",
                          new String[]
                          {
View Full Code Here

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

      return topicDoc;
   }

   private TopicDocument createTopicWithInvalidName(  )
   {
      TopicDocument topicDoc = TopicDocument.Factory.newInstance(  );

      setupTopicDocument( topicDoc,
                          "http://docs.oasis-open.org/wsdm/2004/04/muws-0.5/schema",
                          new String[]
                          {
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument

    */
   private static void addConcreteTopicExpressions( ResourceProperty topicProp,
                                                    QName            rootTopicName,
                                                    Topic            subTopic )
   {
      TopicDocument topicDocument     = TopicDocument.Factory.newInstance(  );
      String        topicName         = subTopic.getName(  );
      QName         concreteTopicName =
         new QName( rootTopicName.getNamespaceURI(  ), rootTopicName.getLocalPart(  ) + "/" + topicName );
      if ( subTopic.isVisible(  ) )
      {
         TopicExpressionType topicExpressionType = topicDocument.addNewTopic(  );
         topicExpressionType.setDialect( TopicsConstants.TOPIC_EXPR_DIALECT_CONCRETE );
         XmlBeanUtils.setValueAsQName( topicExpressionType, concreteTopicName );
         topicProp.add( topicDocument );
      }

View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument

   }

   private static void addSimpleTopicExpression( ResourceProperty topicProp,
                                                 QName            rootTopicName )
   {
      TopicDocument       topicDocument       = TopicDocument.Factory.newInstance(  );
      TopicExpressionType topicExpressionType = topicDocument.addNewTopic(  );
      topicExpressionType.setDialect( TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE );
      XmlBeanUtils.setValueAsQName( topicExpressionType, rootTopicName );
      topicProp.add( topicDocument );
   }
View Full Code Here

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.TopicDocument

        }
    }

    private static void addSimpleTopic(QName rootTopicQName, ResourceProperty resourceProp)
    {
        TopicDocument topicDocument = TopicDocument.Factory.newInstance();
        TopicExpressionType topicExpressionType = topicDocument.addNewTopic();
        topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE);
        XmlBeanUtils.setValueAsQName(topicExpressionType, rootTopicQName);
        resourceProp.add(topicDocument);
    }
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.