Package org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.Documentation


        instance.setTimeInMillis(instance.getTimeInMillis() + 2000000);
        subscribe.setInitialTerminationTime(instance);
        org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType consumerRef = subscribe.addNewConsumerReference();
        org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI address = consumerRef.addNewAddress();
        address.setStringValue(createEpr(consumerURL).getAddress());
        TopicExpressionType topicExpr = subscribe.addNewTopicExpression();
        topicExpr.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE.toString());
        XmlBeanUtils.setValueAsQName(topicExpr, topic);
        XmlObject response = sendRequest(requestDoc, "http://xyz.com/action/Subscribe", createEpr(serviceEPRURL));
        if (!(response instanceof SubscribeResponseDocument.SubscribeResponse))
        {
            return false;
View Full Code Here


      TopicExpressionDocument topicExprDoc = TopicExpressionDocument.Factory.newInstance(  );
      topicExprDoc.setTopicExpression( (TopicExpressionType) ( (XmlBeansTopicExpression) m_topicExpression )
                                       .getXmlObject(  ) );
      prop.add( topicExprDoc );
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_USE_NOTIFY );
      UseNotifyDocument useNotifyDoc = UseNotifyDocument.Factory.newInstance(  );
      useNotifyDoc.setUseNotify( m_useNotify );
      prop.add( useNotifyDoc );
      if ( m_precondition != null )
      {
         prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_PRECONDITION );
         PreconditionDocument preconditionDoc = PreconditionDocument.Factory.newInstance(  );
View Full Code Here

        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_TOPIC_EXPRESSION);
        TopicExpressionDocument topicExprDoc = TopicExpressionDocument.Factory.newInstance();
        topicExprDoc.setTopicExpression((TopicExpressionType) ((XmlBeansTopicExpression) m_topicExpression).getXmlObject());
        prop.add(topicExprDoc);
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_USE_NOTIFY);
        UseNotifyDocument useNotifyDoc = UseNotifyDocument.Factory.newInstance();
        useNotifyDoc.setUseNotify(m_useNotify);
        prop.add(useNotifyDoc);
        if (m_precondition != null) {
            prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_PRECONDITION);
            PreconditionDocument preconditionDoc = PreconditionDocument.Factory.newInstance();
            preconditionDoc.setPrecondition((QueryExpressionType) ((XmlBeansQueryExpression) m_precondition).getXmlObject());
View Full Code Here

         throw new IllegalArgumentException( "Unsupported property: " + propName );
      }

      if ( prop.isEmpty(  ) )
      {
         UseNotifyDocument useNotifyDoc = UseNotifyDocument.Factory.newInstance(  );
         useNotifyDoc.setUseNotify( true );
         prop.add( useNotifyDoc );
      }

      XmlBoolean useNotify = (XmlBoolean) prop.get( 0 );
      useNotify.setBooleanValue( m_subscription.getUseNotify(  ) );
View Full Code Here

      }
      catch ( ClassCastException cce )
      {
         if ( xBean instanceof TopicSpaceDocument )
         {
            TopicSpaceDocument topicSpaceDoc = (TopicSpaceDocument) xBean;
            topicSpaceType = topicSpaceDoc.getTopicSpace(  );
         }
         else
         {
            throw new IllegalArgumentException(  );
         }
View Full Code Here

    *
    * @return DOCUMENT_ME
    */
   public XmlObject toXmlObject( TopicNamespace topicNs )
   {
      TopicSpaceDocument topicSpaceDoc  = TopicSpaceDocument.Factory.newInstance(  );
      TopicSpaceType     topicSpaceType = topicSpaceDoc.addNewTopicSpace(  );

      // TODO: finish this
      return topicSpaceType;
   }
View Full Code Here

    *
    * @return DOCUMENT_ME
    */
   public TopicNamespace toTopicNamespace( XmlObject xBean )
   {
      TopicSpaceType topicSpaceType = toTopicSpaceType( xBean );

      // TODO: validate the TopicSpaceType
      TopicNamespace topicNs =
         TopicsTypeFactory.newInstance(  ).createTopicNamespace( topicSpaceType.getTargetNamespace(  ) );
      topicNs.setName( topicSpaceType.getName(  ) );
      importTopics( topicSpaceType.getTopicArray(  ),
                    topicNs );
      return topicNs;
   }
View Full Code Here

      return topicExpressionType;
   }

   private TopicSpaceType toTopicSpaceType( XmlObject xBean )
   {
      TopicSpaceType topicSpaceType;
      try
      {
         topicSpaceType = (TopicSpaceType) xBean;
      }
      catch ( ClassCastException cce )
View Full Code Here

    * @return DOCUMENT_ME
    */
   public XmlObject toXmlObject( TopicNamespace topicNs )
   {
      TopicSpaceDocument topicSpaceDoc  = TopicSpaceDocument.Factory.newInstance(  );
      TopicSpaceType     topicSpaceType = topicSpaceDoc.addNewTopicSpace(  );

      // TODO: finish this
      return topicSpaceType;
   }
View Full Code Here

   private void importTopics( TopicType[]     topicTypes,
                              TopicSiblingSet topicSiblingSet )
   {
      for ( int i = 0; i < topicTypes.length; i++ )
      {
         TopicType topicType = topicTypes[i];
         Topic     topic = topicSiblingSet.addTopic( topicType.getName(  ) );
         importTopics( topicType.getTopicArray(  ),
                       topic ); // recurse
      }
   }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.Documentation

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.