Package org.apache.muse.ws.addressing

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


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


     * @return An instance of NotificationConsumerClient.
     *
     */
    protected NotificationConsumerClient createConsumerClient()
    {
        EndpointReference consumer = getConsumerReference();
        EndpointReference producer = getProducerReference();
        Environment env = getEnvironment();
       
        NotificationConsumerClient client = new NotificationConsumerClient(consumer, producer, env);
        client.setTrace(isUsingTrace());
       
View Full Code Here

    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

        {
            Environment env = getResource().getEnvironment();
            Document eprDoc = env.getDocument(fileName);
            Element eprXML = XmlUtils.getFirstElement(eprDoc);
           
            EndpointReference epr = new EndpointReference(eprXML);
           
            NotificationProducer wsn =
                (NotificationProducer)getResource().getCapability(WsnConstants.PRODUCER_URI);
           
            wsn.subscribe(epr, new TopicFilter(MuwsConstants.ADV_ME_CREATION_TOPIC), null, null);
View Full Code Here

    public boolean isMatch(EndpointReference epr)
    {
        if (epr == null)
            throw new NullPointerException(_MESSAGES.get("NullResource"));
       
        EndpointReference sgEPR = getServiceGroupEPR();       
        WsResourceClient resource = new WsResourceClient(epr, sgEPR);
        QName[] content = getContentElements();
       
        try
        {
View Full Code Here

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

        if (factory == null)
            throw new NullPointerException(_MESSAGES.get("NullDocument"));
       
        Element root = XmlUtils.createElement(factory, WssgConstants.ADD_QNAME);
       
        EndpointReference epr = getMemberEPR();
        XmlUtils.setElement(root, WssgConstants.MEMBER_EPR_QNAME, epr.toXML());
       
        WsResourceClient member = new WsResourceClient(epr);
        Element content = getContent();
       
        //
View Full Code Here

   
    public EndpointReference getDeploymentEPR()
    {
        String defaultString = getDefaultURI();
        URI defaultURI = URI.create(defaultString);
        return new EndpointReference(defaultURI);
    }
View Full Code Here

     *
     */
    public EndpointReference convertEPR(org.apache.axis2.addressing.EndpointReference axisEPR)
    {
        URI address = URI.create(axisEPR.getAddress());
        EndpointReference epr = new EndpointReference(address);
       
        Map parameters = axisEPR.getAllReferenceParameters();
        Iterator i = parameters.keySet().iterator();
       
        while (i.hasNext())
        {
            QName name = (QName)i.next();
           
            OMElement axiomValue = (OMElement)parameters.get(name);
            Element domValue = convertToDOM(axiomValue);
           
            epr.addParameter(domValue);
        }
       
        return epr;
    }
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

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.