Package com.openshift.client

Examples of com.openshift.client.OpenShiftConnectionFactory


    }

    public static IDomain loginAndGetDomain(OpenShiftEndpoint endpoint, String openshiftServer) {
        // grab all applications
        IOpenShiftConnection connection =
                new OpenShiftConnectionFactory().getConnection(endpoint.getClientId(), endpoint.getUsername(), endpoint.getPassword(), openshiftServer);

        IUser user = connection.getUser();

        IDomain domain;
        if (endpoint.getDomain() != null) {
View Full Code Here


                    LOGGER.info("Initiating Java Client Service - Configured for OpenShift Server "
                            + url);
                }

                service = new OpenShiftConnectionFactory().getConnection(
                        username, username, password, authKey, authIV, url, new NoopSSLCertificateCallback());


                if (proxyHost != null && proxyHost.length() > 0) {
                    System.setProperty(SYSPROPERTY_PROXY_SET, "true");
View Full Code Here

        String password = options.getPassword();
        return createConnection(serverUrl, login, password);
    }

    public static IOpenShiftConnection createConnection(String serverUrl, String login, String password) {
        return new OpenShiftConnectionFactory().getConnection("fabric", login, password, serverUrl);
    }
View Full Code Here

    /**
     * Returns a newly created connection to openshift for this configuration
     */
    public IOpenShiftConnection createConnection() {
        return new OpenShiftConnectionFactory()
                .getConnection("fabric", getLogin(), getPassword(), getServerUrl());
    }
View Full Code Here

TOP

Related Classes of com.openshift.client.OpenShiftConnectionFactory

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.