Package org.apache.muse.ws.resource.remote

Examples of org.apache.muse.ws.resource.remote.WsResourceClient


                System.exit(0);

            //
            // test first WsResource we find
            //
            WsResourceClient client = null;
           
            for (int n = 0; n < members.length && client == null; ++n)
                if (members[n].getEndpointReference().getAddress().toString().endsWith("WsResource"))
                    client = members[n];
           
            client.setTrace(true);
           
            //
            // test WSRL operations
            //
            //destroy(client);
View Full Code Here


       
        Element[] here = null;
        ResourcePropertyCollection props = getWsResource().getPropertyCollection();
        here = props.getResourceProperty(qname);
       
        WsResourceClient otherResource = new WsResourceClient(epr);
        Element[] there = otherResource.getResourceProperty(qname);
       
        //
        // if one has more than the other, we have a problem
        //
        if (here.length != there.length)
View Full Code Here

        throws SoapFault
    {
        if (epr == null)
            throw new NullPointerException(_MESSAGES.get("NullRemoteResource"));
       
        WsResourceClient resource = new WsResourceClient(epr);
       
        String dialect = XPathUtils.NAMESPACE_URI;
        Node[] results = resource.queryResourceProperties(_xpath, dialect);
       
        //
        // no results - failed!
        //
        if (results.length == 0)
View Full Code Here

       
        for (int n = 0; n < xml.length; ++n)
        {
            Element eprXML = XmlUtils.getElement(xml[n], MuwsConstants.ACCESS_EPR_QNAME);
            EndpointReference epr = new EndpointReference(eprXML);
            clients[n] = new WsResourceClient(epr);
        }
       
        return clients;
    }
View Full Code Here

     */
    public Element getContent()
        throws BaseFault
    {
        Element[] content = _EMPTY_CONTENT;
        WsResourceClient client = getMemberClient();
       
        if (client == null)
            return null;
       
        ServiceGroup sg = (ServiceGroup)getServiceGroup().getCapability(WssgConstants.SERVICE_GROUP_URI);
        QName[] contentNames = sg.getContentElements();       
       
        try
        {
            if (contentNames.length != 0)
                content = client.getMultipleResourceProperties(contentNames);
        }
       
        catch (SoapFault fault)
        {
            throw new ContentCreationFailedFault(fault);
View Full Code Here

        return _member;
    }

    public EndpointReference getMemberEPR()
    {
        WsResourceClient client = getMemberClient();
        return client == null ? null : client.getEndpointReference();
    }
View Full Code Here

    public void setMemberEPR(EndpointReference memberEPR)
    {
        if (memberEPR == null)
            throw new NullPointerException(_MESSAGES.get("NullResource"));
       
        _member = new WsResourceClient(memberEPR, getServiceGroupEPR(), getEnvironment());
    }
View Full Code Here

            //
            // 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

        return _currentTime;
    }
   
    public WsResourceClient getEntryClient()
    {
        return new WsResourceClient(_entryEPR);
    }
View Full Code Here

    {
        if (epr == null)
            throw new NullPointerException(_MESSAGES.get("NullResource"));
       
        EndpointReference sgEPR = getServiceGroupEPR();       
        WsResourceClient resource = new WsResourceClient(epr, sgEPR);
        QName[] content = getContentElements();
       
        try
        {
            //
            // all we have to do is try and read all the properties
            // in the list - if any of them is undefined, this will
            // fault, and we don't have a match. there is no fault if
            // the property is defined but has zero instances
            //
            // note that we only do the test if there are some property
            // names - an empty array means "any resource is allowed"
            //
            if (content.length > 0)
                resource.getMultipleResourceProperties(content);
        }
       
        //
        // in this case, there is no error - this just means that
        // the resource does not match the membership rule
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.remote.WsResourceClient

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.