OpenShift Java Client 2.5.0.Final

com.openshift.client
Class OpenShiftConnectionFactory

java.lang.Object
  extended by com.openshift.internal.client.AbstractOpenShiftConnectionFactory
      extended by com.openshift.client.OpenShiftConnectionFactory

public class OpenShiftConnectionFactory
extends AbstractOpenShiftConnectionFactory

Connection Factory, used to establish a connection and retrieve a user.

Author:
Xavier Coulon, Andre Dietisheim

Constructor Summary
OpenShiftConnectionFactory()
           
 
Method Summary
 IOpenShiftConnection getConnection(String clientId, String password)
          Establish a connection with the clientId along with user's password.
 IOpenShiftConnection getConnection(String clientId, String username, String password)
          Establish a connection with the clientId along with user's login and password.
 IOpenShiftConnection getConnection(String clientId, String username, String password, String serverUrl)
          Establish a connection with the clientId along with user's login and password.
protected  IOpenShiftConnection getConnection(String clientId, String username, String password, String serverUrl, IHttpClient httpClient)
           
 IOpenShiftConnection getConnection(String clientId, String username, String password, String authKey, String authIV, String serverUrl)
          Establish a connection with the clientId along with user's login and password.
 
Methods inherited from class com.openshift.internal.client.AbstractOpenShiftConnectionFactory
getConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenShiftConnectionFactory

public OpenShiftConnectionFactory()
Method Detail

getConnection

public IOpenShiftConnection getConnection(String clientId,
                                          String password)
                                   throws OpenShiftException
Establish a connection with the clientId along with user's password. User's login and Server URL are retrieved from the local configuration file (in see $USER_HOME/.openshift/express.conf)

Parameters:
clientId - http client id
password - user's password
Returns:
a valid connection
Throws:
FileNotFoundException
IOException
OpenShiftException

getConnection

public IOpenShiftConnection getConnection(String clientId,
                                          String username,
                                          String password)
                                   throws OpenShiftException
Establish a connection with the clientId along with user's login and password. Server URL is retrieved from the local configuration file (in see $USER_HOME/.openshift/express.conf)

Parameters:
clientId - http client id
username - user's login
password - user's password
Returns:
a valid connection
Throws:
FileNotFoundException
IOException
OpenShiftException

getConnection

public IOpenShiftConnection getConnection(String clientId,
                                          String username,
                                          String password,
                                          String serverUrl)
                                   throws OpenShiftException
Establish a connection with the clientId along with user's login and password.

Parameters:
clientId - http client id
username - user's login.
password - user's password.
serverUrl - the server url.
Returns:
a valid connection
Throws:
FileNotFoundException
IOException
OpenShiftException

getConnection

public IOpenShiftConnection getConnection(String clientId,
                                          String username,
                                          String password,
                                          String authKey,
                                          String authIV,
                                          String serverUrl)
                                   throws OpenShiftException
Establish a connection with the clientId along with user's login and password.

Parameters:
clientId - http client id
username - user's login.
password - user's password.
serverUrl - the server url.
Returns:
a valid connection
Throws:
FileNotFoundException
IOException
OpenShiftException

getConnection

protected IOpenShiftConnection getConnection(String clientId,
                                             String username,
                                             String password,
                                             String serverUrl,
                                             IHttpClient httpClient)
                                      throws OpenShiftException,
                                             IOException
Throws:
OpenShiftException
IOException

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.