Package edu.indiana.extreme.gfac.utils

Examples of edu.indiana.extreme.gfac.utils.HTTPSClient


  public String login() throws GfacException{
    try {
      gssCredential = credentials.getGssCredential();
      createRegistryService(registryUrl, gssCredential);
      this.errorString = null;
      this.httpsClient = new HTTPSClient();
    return ServiceConstants.SUCCESS_STATUS;

    } catch (Exception e) {
      e.printStackTrace();
      String errormessage = new GfacGUIException(e).getMessage();
View Full Code Here


   * The hard-coded URL should be in a property file.  Also this is pretty TeraGrid-specific. Foreseeable
   * to have different subclasses with different mechanisms (OSG, UNICORE, etc).
   */
  private void populateProjectNameItems() {
    if(super.getContext().getHttpsClient()!=null){
      HTTPSClient httpsClient = super.getContext().getHttpsClient();
      try {
        String content = httpsClient.getTextFromURL("https://info.teragrid.org:8444/web-apps/json/profile-v1/project",super.getContext().getCredentials().getMyproxyUserName(),super.getContext().getCredentials().getMyproxyPassword());
        JSONArray jsonArray = new JSONArray(content);
        for(int i=0;i<jsonArray.length();i++){
          JSONObject jsonObject = jsonArray.getJSONObject(i);
          projectNameItems.add(new SelectItem(jsonObject.get("projectId")));
        }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.gfac.utils.HTTPSClient

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.