Examples of send()


Examples of org.scribe.model.ProxyOAuthRequest.send()

            String url = CommonHelper.addParameter(EXCHANGE_TOKEN_URL, OAuthConstants.CLIENT_ID, this.key);
            url = CommonHelper.addParameter(url, OAuthConstants.CLIENT_SECRET, this.secret);
            url = CommonHelper.addParameter(url, EXCHANGE_TOKEN_PARAMETER, accessToken.getToken());
            final ProxyOAuthRequest request = createProxyRequest(url);
            final long t0 = System.currentTimeMillis();
            final Response response = request.send();
            final int code = response.getCode();
            body = response.getBody();
            final long t1 = System.currentTimeMillis();
            logger.debug("Request took : " + (t1 - t0) + " ms for : " + url);
            logger.debug("response code : {} / response body : {}", code, body);
View Full Code Here

Examples of org.seattlegamer.spacegame.core.Bus.send()

    UUID entityId = UUID.randomUUID();
   
    Foo fooOne = new Foo(bus, entityId);
   
    bus.register(fooOne, entityId);
    bus.send("blah", entityId);
   
    assertEquals("blah", fooOne.fooValue);
    fooOne.fooValue = null;

    bus.deregister(fooOne, entityId);
View Full Code Here

Examples of org.seattlegamer.spacegame.core.BusImpl.send()

   
    Foo fooOne = new Foo(bus, entityId);
    Foo fooTwo = new Foo(bus, UUID.randomUUID());
   
    bus.register(fooOne, entityId);
    bus.send("blah", entityId);
   
    assertEquals("blah", fooOne.fooValue);
    assertEquals(null, fooTwo.fooValue);

  }
View Full Code Here

Examples of org.serviceconnector.api.cln.SCSessionService.send()

        LOGGER.info("Message received sync=" + responseMsg.getData());
        Thread.sleep(2000);
      }
      for (int i = 0; i < 5; i++) {
        requestMsg.setData("body nr : " + i);
        service.send(requestMsg); // regular asynchronous call
        LOGGER.info("Message sent async=" + requestMsg.getData());
        Thread.sleep(2000);
      }

      requestMsg.setData("cache message body");
View Full Code Here

Examples of org.serviceconnector.net.connection.IConnection.send()

      @SuppressWarnings("unchecked")
      ScheduledFuture<TimeoutWrapper> timeout = (ScheduledFuture<TimeoutWrapper>) AppContext.otiScheduler.schedule(
          timeoutWrapper, (long) timeoutMillis, TimeUnit.MILLISECONDS);
      reqCallback.setOperationTimeout(timeout);
      reqCallback.setTimeoutMillis(timeoutMillis);
      connection.send(message, requesterCallback);
    } catch (Exception ex) {
      this.connectionPool.freeConnection(connection);
      throw ex;
    }
  }
View Full Code Here

Examples of org.servicemix.client.DefaultServiceMixClient.send()

        assertNull(client.getContext().getEndpointDescriptor(endpoints[0]));
        ServiceEndpoint se = client.getContext().resolveEndpointReference(endpoints[0].getAsReference(null));
        assertNull(client.getContext().getEndpointDescriptor(se));
        InOnly me = client.createInOnlyExchange();
        me.setEndpoint(se);
        client.send(me);
        receiver.getMessageList().assertMessagesReceived(1);
    }
   
    public static class ExternalEndpoint implements ServiceEndpoint {
        private QName service;
View Full Code Here

Examples of org.servicemix.client.ServiceMixClient.send()

        ServiceMixClient clientNoRouting = (ServiceMixClient) context.getBean("clientWithRouting");

        Map properties = new HashMap();
        properties.put("name", "James");

        clientNoRouting.send(null, null, properties, "<hello>world</hello>");

        receiver.getMessageList().assertMessagesReceived(1);
    }

    public void testSendUsingMapAndPOJOsUsingContainerRoutingWithNoConfiguration() throws Exception {
View Full Code Here

Examples of org.servicemix.components.util.ComponentSupport.send()

        transformer.executeChildTemplates(element, context.getContextNode(), context.getMode(), builder);
       
        out.setContent(new DOMSource(document));

        // now lets perform the invocation
        component.send(outExchange);
    }

    /**
     * Calls the service with the XML content included in the XML element and outputs the XML content
     */
 
View Full Code Here

Examples of org.sgx.yuigwt.yui.io.IO.send()

    }
  }).cast();
  IO io1 = Y.newIO(ioConfig);
 
  //send a request.
  Response resp = io1.send(uri1, ioConfig)
 
  //send an other - should trigger "failure" event
  io1.send(nonExistentUri, ioConfig)
 
 
View Full Code Here

Examples of org.snmp4j.Snmp.send()

            }

            PDU response = null;
            ResponseEvent responseEvent;
            long startTime = System.currentTimeMillis();
            responseEvent = snmp.send(request, target);
            if (responseEvent != null) {
                response = responseEvent.getResponse();
                if (log.isDebugEnabled())
                    log.debug("Received response after " + (System.currentTimeMillis() - startTime) + " millis");
            }
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.