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

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


      termTimeDoc.setTerminationTime( getTerminationTime(  ) );
      prop.add( termTimeDoc );

      // wsntw:SubscriptionManager props
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE );
      ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance(  );
      consumerRefDoc.setConsumerReference( (EndpointReferenceType) ( (XmlObjectWrapper) m_consumerReference )
                                           .getXmlObject(  ) );
      prop.add( consumerRefDoc );
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME );
      CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance(  );
      creationTimeDoc.setCreationTime( m_creationTime );
View Full Code Here


        TerminationTimeDocument termTimeDoc = TerminationTimeDocument.Factory.newInstance();
        termTimeDoc.setTerminationTime(getTerminationTime());
        prop.add(termTimeDoc);
        // wsntw:SubscriptionManager props
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE);
        ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance();
        consumerRefDoc.setConsumerReference((EndpointReferenceType) ((XmlObjectWrapper) m_consumerReference).getXmlObject());
        prop.add(consumerRefDoc);
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME);
        CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance();
        creationTimeDoc.setCreationTime(m_creationTime);
        prop.add(creationTimeDoc);
View Full Code Here

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

      if ( prop.isEmpty(  ) )
      {
         ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance(  );
         consumerRefDoc.addNewConsumerReference(  );
         prop.add( consumerRefDoc );
      }

      EndpointReferenceType consumerRef    = (EndpointReferenceType) prop.get( 0 );
      EndpointReferenceType newConsumerRef =
View Full Code Here

      ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance(  );
      consumerRefDoc.setConsumerReference( (EndpointReferenceType) ( (XmlObjectWrapper) m_consumerReference )
                                           .getXmlObject(  ) );
      prop.add( consumerRefDoc );
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME );
      CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance(  );
      creationTimeDoc.setCreationTime( m_creationTime );
      prop.add( creationTimeDoc );
      prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_TOPIC_EXPRESSION );
      TopicExpressionDocument topicExprDoc = TopicExpressionDocument.Factory.newInstance(  );
      topicExprDoc.setTopicExpression( (TopicExpressionType) ( (XmlBeansTopicExpression) m_topicExpression )
                                       .getXmlObject(  ) );
View Full Code Here

        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_CONSUMER_REFERENCE);
        ConsumerReferenceDocument consumerRefDoc = ConsumerReferenceDocument.Factory.newInstance();
        consumerRefDoc.setConsumerReference((EndpointReferenceType) ((XmlObjectWrapper) m_consumerReference).getXmlObject());
        prop.add(consumerRefDoc);
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME);
        CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance();
        creationTimeDoc.setCreationTime(m_creationTime);
        prop.add(creationTimeDoc);
        prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_TOPIC_EXPRESSION);
        TopicExpressionDocument topicExprDoc = TopicExpressionDocument.Factory.newInstance();
        topicExprDoc.setTopicExpression((TopicExpressionType) ((XmlBeansTopicExpression) m_topicExpression).getXmlObject());
        prop.add(topicExprDoc);
View Full Code Here

      prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY );
      prop.setCallback( new SubscriptionPolicyResourcePropertyCallback( this ) );

      prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_CREATION_TIME );
      CreationTimeDocument creationTimeDoc = CreationTimeDocument.Factory.newInstance(  );
      creationTimeDoc.setCreationTime( getCreationTime(  ) );
      prop.add( creationTimeDoc );

      // custom prop 'ProducerReference'
      prop = propSet.get( SubscriptionManagerPortType.PROP_QNAME_PRODUCER_REFERENCE );
      ProducerReferenceDocument producerRefDoc = ProducerReferenceDocument.Factory.newInstance(  );
View Full Code Here

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

      if ( prop.isEmpty(  ) )
      {
         FixedTopicSetDocument fixedTopicSetDoc = FixedTopicSetDocument.Factory.newInstance(  );
         fixedTopicSetDoc.setFixedTopicSet( m_topicSet.isFixed(  ) );
         prop.add( fixedTopicSetDoc );
      }
      else
      {
         XmlBoolean fixedTopicSetPropElem = (XmlBoolean) prop.get( 0 );
View Full Code Here

     */
    public static void initNotificationProducerProperties(TopicSpaceSet topicSpaceSet, ResourcePropertySet propSet)
    {
        //setup the FixedTopicSet property
        ResourceProperty resourceProperty = propSet.get(NotificationProducerPortType.PROP_QNAME_FIXED_TOPIC_SET);
        FixedTopicSetDocument fixedTopicSetDocument = FixedTopicSetDocument.Factory.newInstance();
        fixedTopicSetDocument.setFixedTopicSet(topicSpaceSet.isFixed());
        resourceProperty.add(fixedTopicSetDocument);

        //setup the Topic property
        resourceProperty = propSet.get(NotificationProducerPortType.PROP_QNAME_TOPIC);
        TopicSpace[] topicSpaces = topicSpaceSet.getTopicSpaces();
View Full Code Here

      if ( currentMsg == null )
      {
         throw new NoCurrentMessageOnTopicFaultException( NAMESPACE_SET );
      }

      GetCurrentMessageResponseDocument                           responseDoc =
         GetCurrentMessageResponseDocument.Factory.newInstance(  );
      GetCurrentMessageResponseDocument.GetCurrentMessageResponse response =
         responseDoc.addNewGetCurrentMessageResponse(  );
      XmlBeanUtils.addChildElement( response, currentMsg );
      return responseDoc;
   }
View Full Code Here

        XmlObject currentMsg = (XmlObject) topic.getCurrentMessage();
        if ( currentMsg == null )
        {
            throw new NoCurrentMessageOnTopicFaultException( NAMESPACE_SET );
        }
        GetCurrentMessageResponseDocument responseDoc = GetCurrentMessageResponseDocument.Factory.newInstance();
        GetCurrentMessageResponseDocument.GetCurrentMessageResponse response = responseDoc.addNewGetCurrentMessageResponse();
        XmlBeanUtils.addChildElement( response, currentMsg );
        return responseDoc;
    }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.PreconditionDocument

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.