Package org.apache.muse.ws.addressing

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


        {
            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 static 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

        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

        String defaultURI = getDefaultURI();
       
        if (defaultURI == null)
            throw new IllegalStateException(_MESSAGES.get("NoDefaultURI"));
       
        return new EndpointReference(URI.create(defaultURI));
    }
View Full Code Here

        XmlUtils.setElement(eprXML, WsaConstants.ADDRESS_QNAME, address);
       
        //
        // create EPR object from XML and set it on the newly-created resource
        //
        EndpointReference epr = new EndpointReference(eprXML);
       
        Resource resource = manager.createResource(contextPath);
        resource.setEndpointReference(epr);
       
        //
View Full Code Here

       
        //
        // create the unique EPR for the resource using the
        // ID factory specified
        //
        EndpointReference uniqueEPR = env.getDeploymentEPR();
       
        ResourceIdFactory idFactory = getResourceIdFactory();
       
        if (idFactory != null)
        {
            QName id = idFactory.getIdentifierName();
            String value = idFactory.getNextIdentifier();
            uniqueEPR.addParameter(id, value);
        }
       
        resource.setEndpointReference(uniqueEPR);
       
        //
View Full Code Here

    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

        throws SoapFault
    {
        Element[] entries = getResourceProperty(WssgConstants.ENTRY_QNAME);
        WsResourceClient[] clients = new WsResourceClient[entries.length];
       
        EndpointReference src = getSource();
        EndpointReference dest = null;
       
        for (int n = 0; n < entries.length; ++n)
        {
            //
            // convert ws-sg entry XML -> EPRs -> clients
            //
            Element eprXML = XmlUtils.getElement(entries[n], WssgConstants.MEMBER_SERVICE_EPR_QNAME);
            dest = new EndpointReference(eprXML);
            clients[n] = new WsResourceClient(dest, src);           
        }
       
        return clients;       
    }
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

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.