Package com.openshift.internal.client.response

Examples of com.openshift.internal.client.response.RestResponse


          .client();
    }

    @SuppressWarnings("unchecked")
    protected APIResource getAPIResource(String username, String password, String token, IRestService service) {
      RestResponse response =
          (RestResponse) service.request(
              new Link("Get API", "/api", HttpMethod.GET),
              IHttpClient.NO_TIMEOUT,
              Collections.<Parameter> emptyList(),
              Collections.<Parameter> emptyList());
      return new APIResource(username, password, token, service, (Map<String, Link>) response.getData()) {};
    }
View Full Code Here


*/
public abstract class AbstractOpenShiftConnectionFactory {
 
  @SuppressWarnings("unchecked")
  protected IOpenShiftConnection getConnection(IRestService service, final String login, final String password, final String token) throws IOException, OpenShiftException {
    RestResponse response =
        (RestResponse) service.request(
            new Link("Get API", "/api", HttpMethod.GET),
            IHttpClient.NO_TIMEOUT,
            Collections.<Parameter> emptyList(),
            Collections.<Parameter> emptyList());
    return new APIResource(login, password, token, service, (Map<String, Link>) response.getData());
  }
View Full Code Here

TOP

Related Classes of com.openshift.internal.client.response.RestResponse

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.