Examples of SubscriptionManagerRP


Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.SubscriptionManagerRPDocument.SubscriptionManagerRP

         {
            continue;
         }

         // get the values of all resource properties for the current subscription
         SubscriptionManagerRP rpDoc = curSubscription.getResourceProps(  );

         // get the full notification body - wrapped in Notify element if subscriber wants it
         SOAPElement fullMsgBodyElem;

         if ( rpDoc.getUseNotify(  ) )
         {
            if ( messageWithNotify == null )
            {
               messageWithNotify = createNotification( topic, msgBodyElem, true );
            }

            fullMsgBodyElem = messageWithNotify;
         }
         else
         {
            if ( messageWithoutNotify == null )
            {
               messageWithoutNotify = createNotification( topic, msgBodyElem, false );
            }

            fullMsgBodyElem = messageWithoutNotify;
         }

         // build the full SOAP envelope of the notification message
         EndpointReferenceType epr = rpDoc.getConsumerReference(  );

         LOG.debug( MSG.getMessage( Keys.EMITTING_MESSAGE, epr ) );
         LOG.debug( fullMsgBodyElem );
         SOAPMessage msg = buildSOAPMessage( fullMsgBodyElem, epr );
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.SubscriptionManagerRPDocument.SubscriptionManagerRP

      EndpointReferenceType requestConsumer        = subRequest.getConsumer(  );
      TopicExpressionType   requestTopic           = subRequest.getTopic(  );
      boolean               requestUseNotify       = subRequest.isUseNotify(  );
      Calendar              requestTerminationTime = subRequest.getInitialTerminationTime(  );

      SubscriptionManagerRP rp = m_resourceProps.getSubscriptionManagerRP(  );

      rp.setConsumerReference( requestConsumer );
      rp.setTopicExpression( requestTopic );
      rp.setUseNotify( requestUseNotify );
      rp.setTerminationTime( requestTerminationTime );

      return;
   }
View Full Code Here

Examples of com.ibm.xmlns.stdwip.webServices.wsBaseNotification.SubscriptionManagerRPDocument.SubscriptionManagerRP

      if ( propsDoc == null )
      {
         m_resourceProps = SubscriptionManagerRPDocument.Factory.newInstance(  );

         SubscriptionManagerRP props = m_resourceProps.addNewSubscriptionManagerRP(  );

         Calendar              terminationTime = Calendar.getInstance(  );
         terminationTime.add( Calendar.HOUR, 1 ); // expire this subscription in 1 hour

         props.setTerminationTime( terminationTime );
         props.addNewConsumerReference(  ); // creates an empty consumer reference for the caller to fill in later
         props.addNewTopicExpression(  ); // creates an empty topic expression for the caller to fill in later
         props.setUseNotify( true ); // WS-BaseNotification says the default for this property is true
      }
      else
      {
         m_resourceProps = (SubscriptionManagerRPDocument) propsDoc.copy(  ); // create our own container for props
      }
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.