Examples of executeRequest()


Examples of org.asynchttpclient.AsyncHttpClient.executeRequest()

        connection.disconnect();
        try {
            final CountDownLatch l = new CountDownLatch(1);

            Request request = new RequestBuilder("GET").setUrl(getTargetUrl()).build();
            client.executeRequest(request, new AsyncCompletionHandlerAdapter() {

                @Override
                public Response onCompleted(Response response) throws Exception {
                    try {
                        assertEquals(response.getStatusCode(), 200);
View Full Code Here

Examples of org.asynchttpclient.DefaultAsyncHttpClient.executeRequest()

                        generator.setMaxPendingBytes(10000);

                        RequestBuilder builder = new RequestBuilder("POST");
                        builder.setUrl(scheme + "://localhost:" + port + "/test");
                        builder.setBody(generator);
                        client.executeRequest(builder.build(), new AsyncCompletionHandler<org.asynchttpclient.Response>() {
                            @Override
                            public org.asynchttpclient.Response onCompleted(org.asynchttpclient.Response response) throws Exception {
                                try {
                                    totalsReceived[idx] = Integer.parseInt(response.getHeader("x-total"));
                                } catch (Exception e) {
View Full Code Here

Examples of org.geowebcache.layer.wms.WMSHttpHelper.executeRequest()

        GetMethod getMethod = null;
        BufferedImage img = null;

        try {
            getMethod = srcHelper.executeRequest(wmsUrl, requestParams, backendTimeout);

            if (getMethod.getStatusCode() != 200) {
                throw new GeoWebCacheException("Received response code "
                        + getMethod.getStatusCode() + "\n");
            }
View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementChannelAssociation.executeRequest()

     * Signal that the server is started.
     */
    public synchronized void started() {
        final ManagementChannelAssociation handler = this.handler;
        try {
            handler.executeRequest(new ServerStartedRequest(), null);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

View Full Code Here

Examples of org.jboss.as.protocol.mgmt.ManagementChannelAssociation.executeRequest()

     * Signal that the server is started.
     */
    public synchronized void started() {
        final ManagementChannelAssociation handler = this.handler;
        try {
            handler.executeRequest(new ServerStartedRequest(), null);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

View Full Code Here

Examples of org.platformlayer.ops.helpers.CurlRequest.executeRequest()

    String url = "http://127.0.0.1:8080/solr/admin/cores?core=" + coreKey;

    url += "&action=" + action;

    CurlRequest request = new CurlRequest(url);
    CurlResult result = request.executeRequest(target);
    log.info("result: " + result);
    return result;
  }

}
View Full Code Here

Examples of org.platformlayer.ops.helpers.CurlRequest.executeRequest()

    @Override
    public <T> T doRequest0(Class<T> c) {
      CurlRequest request = toCurlRequest();
      CurlResult result;
      try {
        result = request.executeRequest(target);
      } catch (OpsException e) {
        throw new OpenstackException("Error issuing request", e);
      }

      int httpStatus = result.getHttpResult();
View Full Code Here

Examples of org.platformlayer.ops.helpers.CurlRequest.executeRequest()

        String url = "http://ftp.debian.org/debian/dists/stable/Release.gpg";
        CurlRequest request = new CurlRequest(url);
        request.proxy = proxy;
        request.timeout = TimeSpan.FIVE_SECONDS;
        try {
          CurlResult result = request.executeRequest(target);
          if (result.getHttpResult() != 200) {
            log.info("Unexpected response code while testing proxy: " + proxy + ".  Code="
                + result.getHttpResult());
            continue;
          }
View Full Code Here

Examples of org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor.executeRequest()

              HttpInvokerClientConfiguration invoker = (HttpInvokerClientConfiguration)invokerObject;
              HttpInvokerRequestExecutor nestedHttpInvokerRequestExecutor = new SimpleHttpInvokerRequestExecutor();
              RemoteInvocation call = new RemoteInvocation(action, new Class<?>[0], new Object[0]);
              call.addAttribute(TXN_ID, transactionData.distributedTransactionID);
              try {
                nestedHttpInvokerRequestExecutor.executeRequest(invoker, call);
              }
              catch (Exception e) {
                _log.error("Completing distributed transaction failed", e);
              }
            }
View Full Code Here

Examples of org.springframework.remoting.httpinvoker.HttpInvokerRequestExecutor.executeRequest()

                HttpInvokerClientConfiguration invoker = (HttpInvokerClientConfiguration)invokerObject;
                HttpInvokerRequestExecutor nestedHttpInvokerRequestExecutor = new SimpleHttpInvokerRequestExecutor();
                RemoteInvocation call = new RemoteInvocation(ABORT_TXN, new Class<?>[0], new Object[0]);
                  call.addAttribute(TXN_ID, rootData.distributedTransactionID);
                try {
                  nestedHttpInvokerRequestExecutor.executeRequest(invoker, call);
                }
                catch (Exception e) {
                  _log.error("Aborting distributed transaction failed", e);
                }
              }
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.