Package com.openshift.internal.client

Examples of com.openshift.internal.client.RestService


      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here


      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

      final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password);
  }
View Full Code Here

    Assert.notNull(serverUrl);

    try {
      final IHttpClient httpClient =
          new UrlConnectionHttpClientBuilder().setCredentials(login, password, authKey, authIV).client();
      final IRestService service = new RestService(serverUrl, clientId, httpClient);
      return getConnection(service, login, password);
    } catch (IOException e) {
      throw new OpenShiftException(e, "Failed to establish connection for user ''{0}}''", login);
    }
  }
View Full Code Here

        return null;
      }
    }

    protected IRestService createRestService(IHttpClient httpClient) {
      return new RestService(serverUrl, clientId, new JsonMediaType(),
          IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    }
View Full Code Here

      final String token, final String serverUrl, IHttpClient httpClient) throws OpenShiftException, IOException {
    Assert.notNull(clientId);
    Assert.notNull(serverUrl);
    Assert.notNull(httpClient);

    IRestService service = new RestService(serverUrl, clientId, new JsonMediaType(),
        IHttpClient.MEDIATYPE_APPLICATION_JSON, new OpenShiftJsonDTOFactory(), httpClient);
    return getConnection(service, username, password, token);
  }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.RestService

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.