Package org.wso2.carbon.discovery.client

Examples of org.wso2.carbon.discovery.client.DiscoveryClient.probe()


        if (proxy.getPolicy() != null) {
            client.engageModule("rampart");
            client.setProperty(RampartMessageData.KEY_RAMPART_POLICY,
                    getPolicy(proxy.getPolicy(), registry));
        }
        TargetService[] services = client.probe(types, scopes, pd.getRule());
        client.cleanup();
        return services;
    }

    /**
 
View Full Code Here


            try {
                for (int i = 0; i < scopes.length; i++) {
                    uriScopes[i] = new URI(scopes[i]);
                }
                DiscoveryClient discoveryClient = new DiscoveryClient(messageContext.getConfigurationContext(), discoveryProxy);
                TargetService[] targetServices = discoveryClient.probe(types, uriScopes);
                if ((targetServices != null) && (targetServices.length > 0)) {

                    // currently we try to use the first one.
                    URI targetURI = null;
                    if ((targetServices[0].getXAddresses() != null) && (targetServices[0].getXAddresses().length > 0)) {
View Full Code Here

        Set<String> urlList = new HashSet<String>();
        Exception ex = null;

        try {
            TargetService[] services = discoveryClient.probe(types, scopes, matchingRule);
            if (services != null) {
                // The probe may have returned multiple services
                // Need to extract URLs from each of them
                for (TargetService service : services) {
                    if (service.getXAddresses() != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.