Examples of send()


Examples of com.facebook.presto.jdbc.internal.jetty.client.api.Request.send()

                    if (cause != null)
                        redirect.abort(cause);
                }
            });

            redirect.send(listener);
            return redirect;
        }
        else
        {
            fail(request, response, new HttpResponseException("Max redirects exceeded " + redirects, response));
View Full Code Here

Examples of com.firefly.net.support.TcpConnection.send()

    public void run() {
      TcpConnection c = client.connect();
      try {
        for (int i = 0; i < LOOP; i++) {
          String message = "hello world! " + c.getId();
          String ret = (String) c.send(message);
          log.debug("rev: {}", ret);
        }
      } finally {
        if (c != null)
          c.close(false);
View Full Code Here

Examples of com.firefly.net.support.wrap.client.TcpConnection.send()

          }
          Assert.assertThat(c.isOpen(), is(true));
          log.debug("main thread {}", Thread.currentThread()
              .toString());
          try {
            Assert.assertThat((String) c.send("hello client").get(), is("hello client"));
            Assert.assertThat((String) c.send("hello multithread test").get(), is("hello multithread test"));
            Assert.assertThat((String) c.send("getfile").get(), is("zero copy file transfers"));
            Assert.assertThat((String) c.send("quit").get(), is("bye!"));
          } catch (InterruptedException e) {
            e.printStackTrace();
View Full Code Here

Examples of com.fly.test.activemqTest.ProducerService.send()

public class testSend {
  private static ApplicationContext appContext = new ClassPathXmlApplicationContext("jms.xml");
  
  private static void send(){
    ProducerService producerService = (ProducerService)appContext.getBean("producerService");
    producerService.send();
  }
  private static void receive(){
    ConsumerService consumerService = (ConsumerService)appContext.getBean("consumerService");
    consumerService.receive();
View Full Code Here

Examples of com.founder.fix.fixflow.core.impl.util.MailUtil.send()

        sqlCommand.update("FIXFLOW_MAIL", objectParam, " MAIL_ID=?", objectParamWhere);
       
   
        // 异步发送
        mailUtil.send();

      } catch (Exception e) {

        try {
          Map<String, Object> objectParam = new HashMap<String, Object>();
View Full Code Here

Examples of com.github.dreamhead.moco.helper.MocoSocketHelper.send()

        running(server, new Runnable() {
            @Override
            public void run() throws Exception {
                MocoSocketHelper helper = new MocoSocketHelper(local(), server.port());
                helper.connect();
                assertThat(helper.send("foo", 3), is("bar"));
                helper.close();
            }
        });
    }
}
View Full Code Here

Examples of com.github.kevinsawicki.http.HttpRequest.send()

        this._rid++;

        // set content type to json
        request.contentType(HttpRequest.CONTENT_TYPE_JSON);
        request.acceptJson();
        request.send(postData.toString());

        // We force method call
        int statusCode = request.code();

        if( statusCode != 200 ) {
View Full Code Here

Examples of com.google.analytics.tracking.android.Tracker.send()

        Tracker tracker = GoogleAnalytics.getInstance(this.cordova.getActivity()).getDefaultTracker();
        addCustomDimensionsToTracker(tracker);

        if (null != screenname && screenname.length() > 0) {
            tracker.set(Fields.SCREEN_NAME, screenname);
            tracker.send(MapBuilder
              .createAppView()
              .build()
            );
            callbackContext.success("Track Screen: " + screenname);
        } else {
View Full Code Here

Examples of com.google.android.gcm.server.Sender.send()

      }
    }
    Message message = messageBuilder.build();
    PushResponse pushResponse = new PushResponse();
    try {
      MulticastResult multicastResult = sender.send(message, Lists.newArrayList(registrationIds), 10);
     
      // analyze the results
      for (int i = 0; i < registrationIds.size(); i++) {
        Result result = multicastResult.getResults().get(i);
        Device device = devices.get(i);
View Full Code Here

Examples of com.google.api.explorer.client.base.rest.RestApiRequest.send()

    }

    display.setExecuting(true);

    final long start = System.currentTimeMillis();
    req.send(new AsyncCallback<ApiResponse>() {
      @Override
      public void onSuccess(ApiResponse response) {
        display.setExecuting(false);
        callback.finished(req, response, start, System.currentTimeMillis());
      }
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.