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

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.impl.ResumeSubscriptionResponseDocumentImpl


        SubscriptionTopicListener subscriptionTopicListener = new SubscriptionTopicListener( subscription );
        for ( int i = 0; i < topics.length; i++ )
        {
            topics[i].addTopicListener( subscriptionTopicListener );
        }
        SubscribeResponseDocument subscribeResponseDoc = SubscribeResponseDocument.Factory.newInstance();
        SubscribeResponseDocument.SubscribeResponse subscribeResponse = subscribeResponseDoc.addNewSubscribeResponse();
        subscriptionEPR = (EndpointReferenceType) ( (XmlObjectWrapper) subscription.getEndpointReference() ).getXmlObject();
        subscribeResponse.setSubscriptionReference( subscriptionEPR );
        return subscribeResponseDoc;
    }
View Full Code Here


   }

   private SubscribeResponseDocument buildSubscribeResponseDocument( EndpointReference subscriptionEPR )
   {
      EndpointReferenceType                       subscriptionRefType;
      SubscribeResponseDocument                   subscribeResponseDoc =
         SubscribeResponseDocument.Factory.newInstance(  );
      SubscribeResponseDocument.SubscribeResponse subscribeResponse =
         subscribeResponseDoc.addNewSubscribeResponse(  );
      subscriptionRefType = (EndpointReferenceType) ( (XmlObjectWrapper) subscriptionEPR ).getXmlObject(  );
      subscribeResponse.setSubscriptionReference( subscriptionRefType );
      return subscribeResponseDoc;
   }
View Full Code Here

   /**
    * DOCUMENT_ME
    */
   public void init(  )
   {
      SubscriptionManagerRPDocument propsDoc        = SubscriptionManagerRPDocument.Factory.newInstance(  );
      ResourcePropertySetMetaData   propSetMetaData =
         new XmlBeansResourcePropertySetMetaData( propsDoc.schemaType(  ), READ_ONLY_PROP_NAMES );
      m_propSet = new XmlBeansResourcePropertySet( propsDoc, propSetMetaData );

      // wsrlw:ScheduledResourceTermination props
      ResourceProperty    prop        =
         m_propSet.get( ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME );
View Full Code Here

        super(consumerReference, producerReference,
                producerKey, producerHomeLocation, topicExpression);
    }

    public void init() {
        SubscriptionManagerRPDocument propsDoc = SubscriptionManagerRPDocument.Factory.newInstance();
        ResourcePropertySetMetaData propSetMetaData = new XmlBeansResourcePropertySetMetaData(propsDoc.schemaType(),
                READ_ONLY_PROP_NAMES);
        m_propSet = new XmlBeansResourcePropertySet(propsDoc, propSetMetaData);

        // wsrlw:ScheduledResourceTermination props
        ResourceProperty prop = m_propSet.get(ScheduledResourceTerminationPortType.PROP_QNAME_CURRENT_TIME);
View Full Code Here

      }

      if ( m_policy != null )
      {
         prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY );
         SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance(  );
         subPolicyDoc.setSubscriptionPolicy( null );
         prop.add( subPolicyDoc );
      }
   }
View Full Code Here

            selectorDoc.setSelector((QueryExpressionType) ((XmlBeansQueryExpression) m_selector).getXmlObject());
            prop.add(selectorDoc);
        }
        if (m_policy != null) {
            prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_SUBSCRIPTION_POLICY);
            SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance();
            subPolicyDoc.setSubscriptionPolicy(null);
            prop.add(subPolicyDoc);
        }
    }
View Full Code Here

      if ( m_subscription.getPolicy(  ) != null )
      {
         if ( prop.isEmpty(  ) )
         {
            SubscriptionPolicyDocument subPolicyDoc = SubscriptionPolicyDocument.Factory.newInstance(  );
            subPolicyDoc.addNewSubscriptionPolicy(  );
            prop.add( subPolicyDoc );
         }

         XmlObject subPolicy    = (XmlObject) prop.get( 0 );
         XmlObject newSubPolicy;
View Full Code Here

    */
   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

   }

   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

        }
    }

    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

Related Classes of org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.impl.ResumeSubscriptionResponseDocumentImpl

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.