Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.fabric8.openshift.commands;
 
 import  org.apache.felix.gogo.commands.Option;
 import  org.apache.karaf.shell.console.OsgiCommandSupport;
 
 public abstract class OpenshiftCommandSupport extends OsgiCommandSupport {
    @Option(name = "--server-url", required = false, description = "The url to the openshift server.")
    @Option(name = "--login", required = false, description = "The login name to use.")
    String login;
    @Option(name = "--password", required = false, description = "The password to use.")
    String password;
Returns an existing connection or attempts to create one.

Returns:
        IOpenShiftConnection connection = null;
        if ( != null) {
            connection = .getConnection();
        }
        if (connection == null) {
            connection = createConnection();
        }
        return connection;
    }

    
Creates a connection based on the specified options.

Returns:
        return .getConnection("fabric");
    }
        return ;
    }
    public void setConnectionListener(OpenshiftConnectionListener connectionListener) {
        this. = connectionListener;
    }
New to GrepCode? Check out our FAQ X