Examples of InvalidTopicExpressionFaultException


Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      GetCurrentMessageDocument.GetCurrentMessage request   = requestDoc.getGetCurrentMessage(  );
      TopicExpression                             topicExpr = getTopicExpression( request.getTopic(  ) );
      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." );
      }

      if ( topics.length > 1 )
      {
         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                                                         "Given TopicExpression matched more than one Topic supported by this NotificationProducer - the WS-BaseN spec mandates that it match exactly one." );
      }

      Topic     topic      = topics[0];
      XmlObject currentMsg = (XmlObject) topic.getCurrentMessage(  );
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      SubscribeDocument.Subscribe request   = requestDoc.getSubscribe(  );
      TopicExpression             topicExpr = getTopicExpression( 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." );
      }

      Calendar initialTerminationTime = null;
      if ( request.isSetInitialTerminationTime(  ) )
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      {
         topicExpr = new XmlBeansTopicExpression( topicExpressionType );
      }
      catch ( InvalidTopicExpressionException ite )
      {
         throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                                                         ite.getLocalizedMessage(  ) );
      }

      return topicExpr;
   }
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

        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." );
        }
        Calendar initialTerminationTime = null;
        if ( request.isSetInitialTerminationTime() )
        {
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

        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." );
        }
        if ( topics.length > 1 )
        {
            throw new InvalidTopicExpressionFaultException( NAMESPACE_SET,
                    "Given TopicExpression matched more than one Topic supported by this NotificationProducer - the WS-BaseN spec mandates that it match exactly one." );
        }
        Topic topic = topics[0];
        XmlObject currentMsg = (XmlObject) topic.getCurrentMessage();
        if ( currentMsg == null )
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      {
         currentMsg = m_producerResource.getCurrentMessage( topicExpr );
      }
      catch ( InvalidTopicExpressionException itee )
      {
         throw new InvalidTopicExpressionFaultException( getNamespaceSet(  ),
                                                         itee.getLocalizedMessage(  ) );
      }
      catch ( TopicNotSupportedException tnse )
      {
         throw new TopicNotSupportedFaultException( getNamespaceSet(  ),
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      {
         throw new SubscribeCreationFailedFaultException( getNamespaceSet(  ) );
      }
      catch ( InvalidTopicExpressionException itee )
      {
         throw new InvalidTopicExpressionFaultException( getNamespaceSet(  ),
                                                         itee.getLocalizedMessage(  ) );
      }
      catch ( TopicPathDialectUnknownException tpdue )
      {
         throw new TopicPathDialectUnknownFaultException( getNamespaceSet(  ),
View Full Code Here

Examples of org.apache.ws.notification.base.faults.InvalidTopicExpressionFaultException

      {
         return topicsTypeReader.toTopicExpression( topicExprType );
      }
      catch ( InvalidTopicExpressionException itee )
      {
         throw new InvalidTopicExpressionFaultException( getNamespaceSet(  ),
                                                         itee.getLocalizedMessage(  ) );
      }
   }
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.