Package org.apache.muse.ws.addressing

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


    return manager;
  }
 
  public Bundle getDelegateBundle(){
        Environment env = getEnvironment();
        EndpointReference epr = env.getAddressingContext().getToAddress();
        String address = epr.getAddress().toString();
       
        Iterator keys = contextToBundleMap.keySet().iterator();
        while(keys.hasNext()){
          String currentKey = (String)keys.next();
          if(address.endsWith(currentKey)){
View Full Code Here


        if (doc == null)
            throw new NullPointerException(_MESSAGES.get("NullDocument"));
       
        Element root = XmlUtils.createElement(doc, WssgConstants.ENTRY_QNAME);
       
        EndpointReference myEPR = getResource().getEndpointReference();
        XmlUtils.setElement(root, WssgConstants.SG_ENTRY_EPR_QNAME, myEPR);
       
        EndpointReference member = getMemberEPR();
        XmlUtils.setElement(root, WssgConstants.MEMBER_SERVICE_EPR_QNAME, member);
       
        try
        {
            XmlUtils.setElement(root, WssgConstants.CONTENT_QNAME, getContent());
View Full Code Here

    {
        //
        // get the EPR of the entry resource so we can look it up
        //
        Element entryEprXML = XmlUtils.getElement(resourceXML, WssgConstants.SG_ENTRY_EPR_QNAME);
        EndpointReference entryEPR = new EndpointReference(entryEprXML);
       
        //
        // get the member EPR so we can set the value on the entry resource
        //
        Element memberEprXML = XmlUtils.getElement(resourceXML, WssgConstants.MEMBER_SERVICE_EPR_QNAME);
        EndpointReference memberEPR = new EndpointReference(memberEprXML);
       
        //
        // find the entry resource, use the Entry capability to set the
        // member EPR and service group property values
        //
View Full Code Here

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

        // the right resource. don't have time to go back and refactor the
        // way we store entries and make this more efficient - besides, it's
        // more important the additions and lookups be fast
        //
        Iterator i = _entriesByMemberEPR.keySet().iterator();
        EndpointReference memberEPR = null;
       
        while (i.hasNext() && memberEPR == null)
        {
            EndpointReference nextEPR = (EndpointReference)i.next();
            WsResource nextEntry = (WsResource)_entriesByMemberEPR.get(nextEPR);
           
            if (entry == nextEntry)
                memberEPR = nextEPR;
        }
View Full Code Here

        _contentRules = mcr;
       
        //
        // make sure all MCRs are using this SG's EPR for outgoing messages
        //
        EndpointReference sgEPR = getResource().getEndpointReference();
       
        for (int n = 0; n < _contentRules.length; ++n)
            _contentRules[n].setServiceGroupEPR(sgEPR);
    }
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);
       
        //
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

            //
           
            String contextPath = webAppRoot + "/ServiceGroup";
           
            URI address = getLocalAddress(contextPath, port);
            EndpointReference epr = new EndpointReference(address);
           
            ServiceGroupClient sg = new ServiceGroupClient(epr);
           
            //
            // ping SG, wait a few seconds, then check for members
View Full Code Here

            // the consumer to all messages
            //
           
            String contextPath = webAppRoot + "/WsResource";
            URI address = getLocalAddress(contextPath, producer_port);
            EndpointReference epr = new EndpointReference(address);
           
            webAppRoot = "/wsn-consumer/services";
            contextPath = webAppRoot + "/consumer";
            address = getLocalAddress(contextPath, consumer_port);
            EndpointReference consumer = new EndpointReference(address);
           
            //
            // null filter == send all messages to consumer
            //
            NotificationProducerClient producer = new NotificationProducerClient(epr);
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.