Package org.apache.muse.ws.addressing

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


        // 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(memberEPR);
           
            if (entry == nextEntry)
                memberEPR = nextEPR;
        }
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

    {
        //
        // get the current EPR/Address, and find the part where the
        // context path starts...
        //
        EndpointReference epr = resource.getEndpointReference();
        String address = epr.getAddress().toString();
        int slash = address.lastIndexOf('/');
       
        StringBuffer buffer = new StringBuffer();
        buffer.append(address.substring(0, slash));
       
        //
        // substitute the resource type's context path for the one
        // that was on there originally
        //
        String contextPath = resource.getContextPath();
       
        if (contextPath.charAt(0) != '/')
            buffer.append('/');
       
        buffer.append(contextPath);
       
        //
        // re-set EPR address
        //
        URI addressWithProperEndpoint = URI.create(buffer.toString());
        epr.setAddress(addressWithProperEndpoint);
    }
View Full Code Here

        MessageHeaders wsa = env.getAddressingContext();
       
        if (wsa == null)
            throw new RuntimeException(_MESSAGES.get("NoAddressingContext"));
       
        EndpointReference epr = wsa.getToAddress();
       
        Resource resource = manager.getResource(epr);
       
        if (resource == null)
        {
View Full Code Here

   
    public synchronized void addSubscription(WsResource sub)
    {
        SubscriptionManager subMgr =
            (SubscriptionManager)sub.getCapability(WsnConstants.SUBSCRIPTION_MGR_URI);
        EndpointReference epr = sub.getEndpointReference();
        _subscriptionsByEPR.put(epr, subMgr);
    }
View Full Code Here

        // use the subscription capability to set all the subscription fields
        //
        SubscriptionManager subMgr =
            (SubscriptionManager)sub.getCapability(WsnConstants.SUBSCRIPTION_MGR_URI);
       
        EndpointReference producerEPR = producer.getEndpointReference();
        subMgr.setProducerReference(producerEPR);
       
        subMgr.setConsumerReference(consumer);
        subMgr.setFilter(filter);
        subMgr.setSubscriptionPolicy(policy);
View Full Code Here

    }

    public void notify(NotificationMessage[] messages)
        throws SoapFault
    {
        EndpointReference epr = getProducerReference();
       
        for (int n = 0; n < messages.length; ++n)
            messages[n].setProducerReference(epr);
       
        Element notify = XmlUtils.createElement(WsnConstants.NOTIFY_QNAME);
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

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.