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

Examples of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.impl.DocumentationImpl


    }

    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


    private static void addConcreteTopics(QName rootTopicQName, Topic subTopic, ResourceProperty resourceProp)
    {
        TopicDocument topicDocument = TopicDocument.Factory.newInstance();
        String topicName = subTopic.getName();
        QName concreteTopicName = new QName(rootTopicQName.getNamespaceURI(), rootTopicQName.getLocalPart() + "/" + topicName);
        TopicExpressionType topicExpressionType = topicDocument.addNewTopic();
        topicExpressionType.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_CONCRETE);
        XmlBeanUtils.setValueAsQName(topicExpressionType, concreteTopicName);
        resourceProp.add(topicDocument);
        Iterator iterator = subTopic.topicIterator();
        while (iterator.hasNext())
        {
View Full Code Here

     * @see NotificationProducerPortType#getCurrentMessage(org.oasisOpen.docs.wsn.x2004.x06.wsnWSBaseNotification12Draft01.GetCurrentMessageDocument)
     */
    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,
View Full Code Here

        assertTrue( foundIt );
    }

    private Topic[] evaluate( String expr ) throws Exception
    {
        TopicExpressionType topicExpr = ( (TopicExpressionDocument) XmlObject.Factory.parse(
                "<wsnt:TopicExpression xmlns:wsnt='http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd' " +
                "xmlns:" +
                NSPREFIX1 +
                "='" +
                NSURI1 +
View Full Code Here

        assertTrue( foundIt );
    }

    private Topic[] evaluate( String expr ) throws Exception
    {
        TopicExpressionType topicExpr = ( (TopicExpressionDocument) XmlObject.Factory.parse(
                "<wsnt:TopicExpression xmlns:wsnt='http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd' " +
                "xmlns:" +
                NSPREFIX1 +
                "='" +
                NSURI1 +
View Full Code Here

        assertTrue( foundIt );
    }

    private Topic[] evaluate( String expr ) throws Exception
    {
        TopicExpressionType topicExpr = ( (TopicExpressionDocument) XmlObject.Factory.parse(
                "<wsnt:TopicExpression xmlns:wsnt='http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd' " +
                "xmlns:" +
                NSPREFIX1 +
                "='" +
                NSURI1 +
View Full Code Here

        instance.setTimeInMillis(instance.getTimeInMillis() + 20000);
        subscribe.setInitialTerminationTime( instance );
        org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType consumerRef = subscribe.addNewConsumerReference();
        org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI address = consumerRef.addNewAddress();
        address.setStringValue( consumerURL );
        TopicExpressionType topicExpr = subscribe.addNewTopicExpression();
        topicExpr.setDialect( TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE );
        XmlBeanUtils.setValueAsQName( topicExpr, topic );
        XmlObject response = sendRequest( requestDoc, "http://xyz.com/action/Subscribe" );
        if ( ! ( response instanceof SubscribeResponseDocument.SubscribeResponse ) )
        {
            throw new FaultException( response.toString() );
View Full Code Here

        instance.setTimeInMillis(instance.getTimeInMillis() + 2000000);
        subscribe.setInitialTerminationTime(instance);
        org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType consumerRef = subscribe.addNewConsumerReference();
        org.xmlsoap.schemas.ws.x2003.x03.addressing.AttributedURI address = consumerRef.addNewAddress();
        address.setStringValue(createEpr(consumerURL).getAddress());
        TopicExpressionType topicExpr = subscribe.addNewTopicExpression();
        topicExpr.setDialect(TopicsConstants.TOPIC_EXPR_DIALECT_SIMPLE);
        XmlBeanUtils.setValueAsQName(topicExpr, topic);
        XmlObject response = sendRequest(requestDoc, "http://xyz.com/action/Subscribe", createEpr(serviceEPRURL));
        if (!(response instanceof SubscribeResponseDocument.SubscribeResponse))
        {
            return false;
View Full Code Here

         TopicExpressionDocument topicExprDoc = TopicExpressionDocument.Factory.newInstance(  );
         topicExprDoc.addNewTopicExpression(  );
         prop.add( topicExprDoc );
      }

      TopicExpressionType topicExpr        = (TopicExpressionType) prop.get( 0 );
      TopicsTypeWriter    topicsTypeWriter = TopicsTypeWriter.newInstance( TopicsConstants.NSURI_WSTOP_SCHEMA );
      TopicExpressionType newTopicExpr     =
         (TopicExpressionType) topicsTypeWriter.toXmlObject( m_subscription.getTopicExpression(  ),
                                                             SubscriptionManagerPortType.PROP_QNAME_TOPIC_EXPRESSION );
      topicExpr.set( newTopicExpr );
      return prop;
   }
View Full Code Here

    * @throws CallbackFailedException DOCUMENT_ME
    */
   public void updateProperty( Object[] propElems )
   throws CallbackFailedException
   {
      TopicExpressionType topicExpr        = (TopicExpressionType) propElems[0];
      TopicsTypeReader    topicsTypeReader = TopicsTypeReader.newInstance( TopicsConstants.NSURI_WSTOP_SCHEMA );
      try
      {
         m_subscription.setTopicExpression( topicsTypeReader.toTopicExpression( topicExpr ) );
      }
View Full Code Here

TOP

Related Classes of org.oasisOpen.docs.wsn.x2004.x06.wsnWSTopics12Draft01.impl.DocumentationImpl

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.