Examples of doRequest()


Examples of hamsam.util.net.ssl.HamsamHttpsConnection.doRequest()

   * @return url of passport login server
   */
  private static String getPassportLoginServer(ProxyInfo info) throws IOException
  {
    HamsamHttpsConnection conn = new HamsamHttpsConnection("https://nexus.passport.com/rdr/pprdr.asp", info);
    conn.doRequest();
    String header = conn.getHeaderField("PassportURLs");
    int start = header.indexOf("DALogin=") + 8;
    int end = header.indexOf(',', start);
    return "https://" + header.substring(start, end);
  }
View Full Code Here

Examples of io.fathom.http.HttpRequest.doRequest()

        // Fetch the root page; this warms-up the app
        try {
            HttpClient httpClient = JreHttpClient.create();
            URI uri = URI.create("http://127.0.0.1:8080/");
            HttpRequest httpRequest = httpClient.buildRequest(HttpMethod.GET, uri);
            try (HttpResponse response = httpRequest.doRequest()) {
                if (response.getHttpResponseCode() != 200) {
                    throw new IllegalStateException("Bad response code from page: " + response.getHttpResponseCode());
                }
            }
        } catch (Exception e) {
View Full Code Here

Examples of io.teknek.intravert.service.DefaultIntravertService.doRequest()

              .add(new Operation()
                      .withId("2")
                      .withType(ActionFactory.SET_KEYSPACE)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put("name", keyspaceName).build()));
      Response response = service.doRequest(request);
      TestUtils.assertResponseDidNotFail(response);
      List<Map> results = (List<Map>) response.getResults().get("1");
      Assert.assertNotNull(results.get(0).get(Constants.SESSION_ID));
    }
    {
View Full Code Here

Examples of io.teknek.intravert.service.DefaultIntravertService.doRequest()

                      .withType(ActionFactory.LOAD_SESSION)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put(Constants.SESSION_ID,
                                      0L).build()));
      other.getOperations().add(new Operation().withId("2").withType(ActionFactory.GET_KEYSPACE));
      Response second = service.doRequest(other);
      TestUtils.assertResponseDidNotFail(second);
      List<Map> results = (List<Map>) second.getResults().get("2");
      Assert.assertEquals(keyspaceName, results.get(0).get("keyspace"));
    }
  }
View Full Code Here

Examples of io.teknek.intravert.service.IntravertService.doRequest()

              .add(new Operation()
                      .withId("2")
                      .withType(ActionFactory.SET_KEYSPACE)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put("name", keyspaceName).build()));
      Response response = service.doRequest(request);
      TestUtils.assertResponseDidNotFail(response);
      List<Map> results = (List<Map>) response.getResults().get("1");
      Assert.assertNotNull(results.get(0).get(Constants.SESSION_ID));
    }
    {
View Full Code Here

Examples of io.teknek.intravert.service.IntravertService.doRequest()

                      .withType(ActionFactory.LOAD_SESSION)
                      .withArguments(
                              new ImmutableMap.Builder<String, Object>().put(Constants.SESSION_ID,
                                      0L).build()));
      other.getOperations().add(new Operation().withId("2").withType(ActionFactory.GET_KEYSPACE));
      Response second = service.doRequest(other);
      TestUtils.assertResponseDidNotFail(second);
      List<Map> results = (List<Map>) second.getResults().get("2");
      Assert.assertEquals(keyspaceName, results.get(0).get("keyspace"));
    }
  }
View Full Code Here

Examples of jweblite.web.page.JWebLitePage.doRequest()

            "ClientIP=%s, ReqUri=%s, refClassName=%s",
            req.getRemoteAddr(), req.getRequestURI(), refClassName));
      }
      reqClassInstance = (JWebLitePage) reqClass.newInstance();
      req.setAttribute(attrPrefix, reqClassInstance);
      reqClassInstance.doRequest(context, formModel);
    }
    return reqClassInstance;
  }

  /**
 
View Full Code Here

Examples of org.apache.giraph.comm.requests.SendWorkerToWorkerMessageRequest.doRequest()

   */
  public void sendMessageToWorker(Writable message, int workerIndex) {
    SendWorkerToWorkerMessageRequest request =
        new SendWorkerToWorkerMessageRequest(message);
    if (workerIndex == myWorkerIndex) {
      request.doRequest(serviceWorker.getServerData());
    } else {
      serviceWorker.getWorkerClient().sendWritableRequest(
          workerList.get(workerIndex).getTaskId(), request);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.