Package org.servicemix.ws.xmlbeans.notification.base

Examples of org.servicemix.ws.xmlbeans.notification.base.GetCurrentMessageDocument$GetCurrentMessage$Factory


        SubscribeResponse response = (SubscribeResponse) request(subscribeRequest);
        return new Subscription(response.getSubscriptionReference(), getClient());
    }

    public List<Object> getCurrentMessage(String topic) throws JBIException {
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = (GetCurrentMessageResponse) request(getCurrentMessageRequest);
        return response.getAny();
    }
View Full Code Here


    public List<Object> getCurrentMessage(String topic)
        //CHECKSTYLE:OFF - WS-Notification spec throws a lot of faults
        throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault,
        InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault {
        //CHECKSTYLE:ON
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = broker.getCurrentMessage(getCurrentMessageRequest);
        return response.getAny();
    }
View Full Code Here

    SubscribeResponse response = (SubscribeResponse) request(subscribeRequest);
    return new Subscription(response.getSubscriptionReference(), getClient());
  }

  public List<Object> getCurrentMessage(String topic) throws JBIException {
    GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
    if (topic != null) {
      TopicExpressionType topicExp = new TopicExpressionType();
      topicExp.getContent().add(topic);
      getCurrentMessageRequest.setTopic(topicExp);
    }
    GetCurrentMessageResponse response = (GetCurrentMessageResponse) request(getCurrentMessageRequest);
    return response.getAny();
  }
View Full Code Here

    public List<Object> getCurrentMessage(String topic)
        //CHECKSTYLE:OFF - WS-Notification spec throws a lot of faults
        throws TopicNotSupportedFault, TopicExpressionDialectUnknownFault, MultipleTopicsSpecifiedFault,
        InvalidTopicExpressionFault, ResourceUnknownFault, NoCurrentMessageOnTopicFault {
        //CHECKSTYLE:ON
        GetCurrentMessage getCurrentMessageRequest = new GetCurrentMessage();
        if (topic != null) {
            TopicExpressionType topicExp = new TopicExpressionType();
            topicExp.getContent().add(topic);
            getCurrentMessageRequest.setTopic(topicExp);
        }
        GetCurrentMessageResponse response = getBroker().getCurrentMessage(getCurrentMessageRequest);
        return response.getAny();
    }
View Full Code Here

TOP

Related Classes of org.servicemix.ws.xmlbeans.notification.base.GetCurrentMessageDocument$GetCurrentMessage$Factory

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.