Package org.apache.muse.ws.addressing

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


        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

       
        //
        // create EPR for test resource
        //
        URI address = getLocalAddress(contextPath, port);
        EndpointReference epr = new EndpointReference(address);
       
        //
        // create proxy - turn on tracing of SOAP messages
        //
        HttpServerClient http = new HttpServerClient(epr);
View Full Code Here

           
            //
            // create EPR for test resource
            //
            URI address = getLocalAddress(contextPath, port);
            EndpointReference epr = new EndpointReference(address);
           
            addReferenceParameter(epr);
           
            //
            // create proxy - turn on tracing of SOAP messages
View Full Code Here

        Element eprXML = XmlUtils.getElement(detail, WsbfConstants.ORIGINATOR_QNAME);
       
        try
        {
            if (eprXML != null)
                setOriginReference(new EndpointReference(eprXML, false));
        }
       
        catch (Throwable error)
        {
            //
View Full Code Here

    public Element getDetail()
    {
        Element baseFault = XmlUtils.createElement(getName());
        XmlUtils.setElement(baseFault, WsbfConstants.TIMESTAMP_QNAME, getTimestamp());
       
        EndpointReference originEPR = getOriginReference();
       
        if (originEPR != null)
        {
            Element originXML = originEPR.toXML();
            baseFault.appendChild(originXML);
        }
       
        Element errorCode = getErrorCode();
       
View Full Code Here

        _errorCodeDialect = errorCodeDialect;
    }
   
    public void setOriginReference(EndpointReference origin)
    {
        _origin = new EndpointReference(origin, WsbfConstants.ORIGINATOR_QNAME);
    }
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

        //       This method would then become a O(1) operation just like the
        //       more generic getResource(EPR) method.
        //
        while (i.hasNext())
        {
            EndpointReference next = (EndpointReference)i.next();
            String addressPath = next.getAddress().getRawPath();
           
            if (addressPath.endsWith(contextPath))
                copy.add(next);
        }
       
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

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.