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

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


      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(  ) );
         prop.add( preconditionDoc );
      }

      if ( m_selector != null )
View Full Code Here


        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());
            prop.add(preconditionDoc);
        }
        if (m_selector != null) {
            prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_SELECTOR);
            SelectorDocument selectorDoc = SelectorDocument.Factory.newInstance();
View Full Code Here

      if ( m_subscription.getPrecondition(  ) != null )
      {
         if ( prop.isEmpty(  ) )
         {
            PreconditionDocument preconditionDoc = PreconditionDocument.Factory.newInstance(  );
            preconditionDoc.addNewPrecondition(  );
            prop.add( preconditionDoc );
         }

         QueryExpressionType precondition    = (QueryExpressionType) prop.get( 0 );
         QueryExpressionType newPrecondition =
View Full Code Here

      return responseDoc;
   }

   private ResumeSubscriptionResponseDocument createResumeSubscriptionResponseDocument(  )
   {
      ResumeSubscriptionResponseDocument responseDoc = ResumeSubscriptionResponseDocument.Factory.newInstance(  );
      responseDoc.addNewResumeSubscriptionResponse(  );
      return responseDoc;
   }
View Full Code Here

        return responseDoc;
    }

    private ResumeSubscriptionResponseDocument createResumeSubscriptionResponseDocument()
    {
        ResumeSubscriptionResponseDocument responseDoc =
                ResumeSubscriptionResponseDocument.Factory.newInstance();
        responseDoc.addNewResumeSubscriptionResponse();
        return responseDoc;
    }
View Full Code Here

      return responseDoc;
   }

   private ResumeSubscriptionResponseDocument createResumeSubscriptionResponseDocument(  )
   {
      ResumeSubscriptionResponseDocument responseDoc = ResumeSubscriptionResponseDocument.Factory.newInstance(  );
      responseDoc.addNewResumeSubscriptionResponse(  );
      return responseDoc;
   }
View Full Code Here

      }

      if ( m_selector != null )
      {
         prop = m_propSet.get( SubscriptionManagerPortType.PROP_QNAME_SELECTOR );
         SelectorDocument selectorDoc = SelectorDocument.Factory.newInstance(  );
         selectorDoc.setSelector( (QueryExpressionType) ( (XmlBeansQueryExpression) m_selector ).getXmlObject(  ) );
         prop.add( selectorDoc );
      }

      if ( m_policy != null )
      {
View Full Code Here

            preconditionDoc.setPrecondition((QueryExpressionType) ((XmlBeansQueryExpression) m_precondition).getXmlObject());
            prop.add(preconditionDoc);
        }
        if (m_selector != null) {
            prop = m_propSet.get(SubscriptionManagerPortType.PROP_QNAME_SELECTOR);
            SelectorDocument selectorDoc = SelectorDocument.Factory.newInstance();
            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();
View Full Code Here

      if ( m_subscription.getSelector(  ) != null )
      {
         if ( prop.isEmpty(  ) )
         {
            SelectorDocument selectorDoc = SelectorDocument.Factory.newInstance(  );
            selectorDoc.addNewSelector(  );
            prop.add( selectorDoc );
         }

         QueryExpressionType selector    = (QueryExpressionType) prop.get( 0 );
         QueryExpressionType newSelector =
View Full Code Here

                                                       TopicFilter             tf,
                                                       XPathFilter             xf,
                                                       Calendar                initialTerminationTime,
                                                       boolean                 UseNotify )
   {
      SubscribeDocument           sdom = SubscribeDocument.Factory.newInstance(  );
      SubscribeDocument.Subscribe s = sdom.addNewSubscribe(  );

      //subscription ends are send to:
      //TODO
      //notifications are send to:
      s.setConsumerReference( (org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType) ( (XmlObjectWrapper) notificationConsumer
                                                                                                    .getEPR(  ) )
                              .getXmlObject(  ) );

      //TODO check Calendar serializing
      s.setInitialTerminationTime( initialTerminationTime );

      //TODO multiple filters
      if ( tf != null )
      {
         TopicExpressionType te = s.addNewTopicExpression(  );
         XmlCursor           xc = te.newCursor(  );
         xc.toNextToken(  );
         xc.insertNamespace( "tns",
                             tf.getNameSpace(  ) );
         te.newCursor(  ).setTextValue( (String) tf.getExpression(  ) );
         te.setDialect( tf.getURI(  ).toString(  ) );
      }

      //create Subscription
      //add to local SubscriptionHome       
      org.apache.ws.notification.pubsub.Subscription ls      = this.sH.create(  );
      SubscribeResponseDocument.SubscribeResponse    sresres = null;
      try
      {
         //now call
         wsaSOAPConnection sconn = wsaSOAPConnection.newInstance(  );
         MessageFactory    mf    = MessageFactory.newInstance(  );
         SOAPMessage       soapm = mf.createMessage(  );

         //put XMLbean into SOAPBody
         soapm.getSOAPBody(  ).addDocument( (org.w3c.dom.Document) sdom.newDomNode(  ) );
         SOAPMessage                   subscribeResponse = sconn.call( soapm,
                                                                       epr.getAddress(  ).toString(  ) );
         java.io.ByteArrayOutputStream os = new java.io.ByteArrayOutputStream(  );
         subscribeResponse.writeTo( os );
         EnvelopeDocument sres =
View Full Code Here

TOP

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

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.