Examples of UnifiedEndpointFactory


Examples of org.wso2.carbon.unifiedendpoint.core.UnifiedEndpointFactory

        }

    }

    private UnifiedEndpoint buildUnifiedEndpoint(EndpointConfiguration endpointConfiguration) throws AxisFault {
        UnifiedEndpointFactory uepFactory = new UnifiedEndpointFactory();
        UnifiedEndpoint partnerEndpoint;
        if (endpointConfiguration != null && (endpointConfiguration.getUnifiedEndPoint() != null ||
                endpointConfiguration.getUnifiedEndPointReference() != null)) {
            if (endpointConfiguration.getUnifiedEndPoint() != null) {
                partnerEndpoint = uepFactory.createEndpoint(endpointConfiguration.getUnifiedEndPoint());
            } else {
                String uepConfPath = endpointConfiguration.getUnifiedEndPointReference();
                if (!uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_GOV_REG) ||
                        !uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_CONF_REG) ||
                        !uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_REG)) {
                    if (uepConfPath.startsWith(UnifiedEndpointConstants.VIRTUAL_FILE)) {
                        uepConfPath = uepConfPath.substring(UnifiedEndpointConstants.VIRTUAL_FILE.
                                length());
                    }
                    if (isAbsoutePath(uepConfPath)) {
                        uepConfPath = UnifiedEndpointConstants.VIRTUAL_FILE + uepConfPath;
                    } else {
                        uepConfPath = getAbsolutePath(endpointConfiguration.getBasePath(), uepConfPath);
                    }
                }
                partnerEndpoint = uepFactory.createVirtualEndpoint(uepConfPath);
            }
        } else {
            partnerEndpoint = new UnifiedEndpoint();
            partnerEndpoint.setUepId(this.serviceName.getLocalPart());
            partnerEndpoint.setAddressingEnabled(true);
View Full Code Here

Examples of org.wso2.carbon.unifiedendpoint.core.UnifiedEndpointFactory

        try {
            /*ToDo : Fix this... Need a new service method here*/
            uepArray = stub.getDynamicEndpoints(10, 10);
            for (String uepStr : uepArray) {
                if (uepStr != null) {
                    UnifiedEndpoint uep = new UnifiedEndpointFactory().createEndpoint(uepStr);
                    if (uep != null && uep.getUepId().equals(uepId)) {
                        unifiedEndpoint = uep;
                    }
                }
            }
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.