Package org.apache.ws.notification.base.impl

Examples of org.apache.ws.notification.base.impl.XmlBeansTopicExpression


      {
         e.printStackTrace(  );
      }

      //topicExprType.setDialect("http://foobar");
      XmlBeansTopicExpression topicExpr = new XmlBeansTopicExpression( topicExprType.getTopicExpression(  ) );
      SubscriptionResource    sub = new SubscriptionResource( epr, epr, null, "my/producer/home", topicExpr );
      sub.setNotificationProducer( new NotifProducer(  ) );

      /* EndpointReference consumerReference, EndpointReference producerReference,
         Calendar initialTerminationTime, Object policy, QueryExpression precondition,
View Full Code Here


                                                              + NSPREFIX2 + "='" + NSURI2
                                                              + "' Dialect='http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Full'>"
                                                              + expr + "</wsnt:TopicExpression>" ) )
         .getTopicExpression(  );
      return m_evaluator.evaluate( m_topicSpaceSet,
                                   new XmlBeansTopicExpression( topicExpr ) );
   }
View Full Code Here

                                                              + NSPREFIX2 + "='" + NSURI2
                                                              + "' Dialect='http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Full'>"
                                                              + expr + "</wsnt:TopicExpression>" ) )
         .getTopicExpression(  );
      return m_evaluator.evaluate( m_topicSpaceSet,
                                   new XmlBeansTopicExpression( topicExpr ) );
   }
View Full Code Here

                                                              + NSPREFIX2 + "='" + NSURI2
                                                              + "' Dialect='http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Full'>"
                                                              + expr + "</wsnt:TopicExpression>" ) )
         .getTopicExpression(  );
      return m_evaluator.evaluate( m_topicSpaceSet,
                                   new XmlBeansTopicExpression( topicExpr ) );
   }
View Full Code Here

   private TopicExpression getTopicExpression( TopicExpressionType topicExpressionType )
   {
      TopicExpression topicExpr = null;
      try
      {
         topicExpr = new XmlBeansTopicExpression( topicExpressionType );
      }
      catch ( InvalidTopicExpressionException ite )
      {
         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                                                         ite.getLocalizedMessage(  ) );
View Full Code Here

     * @see NotificationProducerPortType#subscribe(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.SubscribeDocument)
     */
    public SubscribeResponseDocument subscribe( SubscribeDocument requestDoc )
    {
        SubscribeDocument.Subscribe request = requestDoc.getSubscribe();
        TopicExpression topicExpr = new XmlBeansTopicExpression( request.getTopicExpression() );
        Topic[] topics = evaluateTopicExpression( topicExpr );
        if ( topics.length == 0 )
        {
            throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                    "Given TopicExpression did not match any Topics supported by this NotificationProducer - the WS-BaseN spec mandates that it match at least one." );
View Full Code Here

     */
    public GetCurrentMessageResponseDocument getCurrentMessage( GetCurrentMessageDocument requestDoc )
    {
        GetCurrentMessageDocument.GetCurrentMessage request = requestDoc.getGetCurrentMessage();
        TopicExpressionType topicExprXmlBean = request.getTopic();
        TopicExpression topicExpr = new XmlBeansTopicExpression( topicExprXmlBean );
        Topic[] topics = evaluateTopicExpression( topicExpr );
        if ( topics.length == 0 )
        {
            throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                    "Given TopicExpression did not match any Topics supported by this NotificationProducer - the WS-BaseN spec mandates that it match exactly one." );
View Full Code Here

        {
            e.printStackTrace();
        }
        //topicExprType.setDialect("http://foobar");

        XmlBeansTopicExpression topicExpr = new XmlBeansTopicExpression(topicExprType.getTopicExpression());
        SubscriptionResource sub = new SubscriptionResource(epr,epr,null,"my/producer/home",topicExpr);
        sub.setNotificationProducer(new NotifProducer());

       /* EndpointReference consumerReference, EndpointReference producerReference,
                                    Calendar initialTerminationTime, Object policy, QueryExpression precondition,
View Full Code Here

                "='" +
                NSURI2 +
                "' Dialect='http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Full'>" +
                expr +
                "</wsnt:TopicExpression>" ) ).getTopicExpression();
        return m_evaluator.evaluate( m_topicSpaceSet, new XmlBeansTopicExpression( topicExpr ) );
    }
View Full Code Here

                "='" +
                NSURI2 +
                "' Dialect='http://docs.oasis-open.org/wsn/2004/06/TopicExpression/Full'>" +
                expr +
                "</wsnt:TopicExpression>" ) ).getTopicExpression();
        return m_evaluator.evaluate( m_topicSpaceSet, new XmlBeansTopicExpression( topicExpr ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.ws.notification.base.impl.XmlBeansTopicExpression

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.