Package org.apache.muse.ws.addressing

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


        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

        if (doc == null)
            throw new NullPointerException(_MESSAGES.get("NullDocument"));
       
        Element root = XmlUtils.createElement(doc, WsnConstants.SUBSCRIBE_QNAME);
       
        EndpointReference consumer = getConsumerReference();
        XmlUtils.setElement(root, WsnConstants.CONSUMER_QNAME, consumer);
       
        Filter filter = getFilter();
       
        if (filter != null)
View Full Code Here

     *         subscription's EPR
     *        
     */
    public boolean accepts(NotificationMessage message)
    {
        EndpointReference subEPR = message.getSubscriptionReference();
        return subEPR != null && getSubscription().equals(subEPR);
    }
View Full Code Here

        WsResourceClient[] clients = new WsResourceClient[xml.length];
       
        for (int n = 0; n < xml.length; ++n)
        {
            Element eprXML = XmlUtils.getElement(xml[n], MuwsConstants.ACCESS_EPR_QNAME);
            EndpointReference epr = new EndpointReference(eprXML);
            clients[n] = new WsResourceClient(epr);
        }
       
        return clients;
    }
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

        setRealDirectory(realDirectory);
    }
   
    public EndpointReference getDeploymentEPR()
    {
        return new EndpointReference(_deploy);
    }
View Full Code Here

        _topicPath = XmlUtils.getQNameFromChild(root, WsnConstants.TOPIC_QNAME);
       
        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

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.