Package org.apache.muse.ws.addressing

Examples of org.apache.muse.ws.addressing.EndpointReference


    public Element toXML(Document doc)
    {
        Element root = XmlUtils.createElement(doc, WsnConstants.SUBSCRIBE_QNAME);
       
        EndpointReference sub = getWsResource().getEndpointReference();
        EndpointReference consumer = getConsumerReference();
        EndpointReference producer = getProducerReference();
        Filter filter = getFilter();
       
        XmlUtils.setElement(root, WsnConstants.SUBSCRIPTION_EPR_QNAME, sub);
        XmlUtils.setElement(root, WsnConstants.CONSUMER_QNAME, consumer);
        XmlUtils.setElement(root, WsnConstants.PRODUCER_QNAME, producer);
View Full Code Here


    {
        //
        // get the EPR of the entry resource so we can look it up
        //
        Element subEprXML = XmlUtils.getElement(resourceXML, WsnConstants.SUBSCRIPTION_EPR_QNAME);
        EndpointReference subEPR = new EndpointReference(subEprXML);
       
        //
        // get properties of the subscription so we can add them back to
        // the resource instance
        //
        Element consumerEprXML = XmlUtils.getElement(resourceXML, WsnConstants.CONSUMER_QNAME);
        EndpointReference consumerEPR = new EndpointReference(consumerEprXML);
       
        Element producerEprXML = XmlUtils.getElement(resourceXML, WsnConstants.PRODUCER_QNAME);
        EndpointReference producerEPR = new EndpointReference(producerEprXML);
       
        Element filterXML = XmlUtils.getElement(resourceXML, WsnConstants.FILTER_QNAME);
        Filter filter = FilterFactory.getInstance().newInstance(filterXML, null);
       
        //
View Full Code Here

        catch (SoapFault error)
        {
            throw new UnableToCreatePullPointFault(error);
        }
       
        EndpointReference epr = pullPoint.getEndpointReference();
       
        PullPoint pullPointCap = (PullPoint)pullPoint.getCapability(WsnConstants.PULL_POINT_URI);
        Filter filter = pullPointCap.getFilter();
       
        //
View Full Code Here

        Subscribe sub = new Subscribe(consumer, filter, termination);
       
        Element responseXML = invoke(WsnConstants.SUBSCRIBE_URI, sub.toXML());
       
        SubscribeResponse response = new SubscribeResponse(responseXML);
        EndpointReference epr = response.getSubscriptionReference();
       
        return new SubscriptionClient(epr, getSource());
    }
View Full Code Here

            throw new SoapFault(_MESSAGES.get("NoTopicPath"));
       
        Element producerXML = XmlUtils.getElement(root, WsnConstants.PRODUCER_QNAME);
       
        if (producerXML != null)
            _producer = new EndpointReference(producerXML);
       
        Element subXML = XmlUtils.getElement(root, WsnConstants.SUBSCRIPTION_EPR_QNAME);
       
        if (subXML != null)
            _subscription = new EndpointReference(subXML);
       
        Element messageXML = XmlUtils.getElement(root, WsnConstants.MESSAGE_QNAME);
       
        //
        // we have to have a Message element, even if it's empty
View Full Code Here

    {
        if (producer == null)
            _producer = null;
       
        else
            _producer = new EndpointReference(producer, WsnConstants.PRODUCER_QNAME);
    }
View Full Code Here

        if (doc == null)
            throw new NullPointerException(_MESSAGES.get("NullDocument"));
       
        Element root = XmlUtils.createElement(doc, WsnConstants.NOTIFICATION_MSG_QNAME);
       
        EndpointReference sub = getSubscriptionReference();
       
        if (sub != null)
        {
            Element eprXML = sub.toXML(doc);
            XmlUtils.setElement(root, WsnConstants.SUBSCRIPTION_EPR_QNAME, eprXML);
        }
       
        QName topicPath = getTopic();
       
        if (topicPath != null)
        {
            Element topic = XmlUtils.createElement(doc, WsnConstants.TOPIC_QNAME, topicPath);
            topic.setAttribute(WsnConstants.DIALECT, getTopicDialect());
            root.appendChild(topic);
        }
       
        EndpointReference producer = getProducerReference();
       
        if (producer != null)
        {
            Element eprXML = producer.toXML(doc);
            XmlUtils.setElement(root, WsnConstants.PRODUCER_QNAME, eprXML);
        }
       
        Element message = XmlUtils.createElement(doc, WsnConstants.MESSAGE_QNAME);
        root.appendChild(message);
View Full Code Here

        if (eprXML == null)
            throw new InvalidMessageFormatFault(_MESSAGES.get("NoSubscriptionEPR"));
       
        try
        {
            _subscriptionEPR = new EndpointReference(eprXML);
        }
       
        catch (SoapFault error)
        {
            throw new InvalidMessageFormatFault(error);
View Full Code Here

        if (eprXML == null)
            throw new NullPointerException(_MESSAGES.get("NullConsumerElement"));
       
        try
        {
            _consumer = new EndpointReference(eprXML);
        }
       
        catch (SoapFault error)
        {
            throw new InvalidMessageFormatFault(error);
View Full Code Here

    public Subscribe(EndpointReference consumer, Filter filter, Date terminationTime)
    {
        if (consumer == null)
            throw new NullPointerException(_MESSAGES.get("NullConsumerEPR"));
       
        _consumer = new EndpointReference(consumer, WsnConstants.CONSUMER_QNAME);
        _filter = filter;
        _terminationTime = terminationTime;
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.EndpointReference

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.