Examples of request()


Examples of org.omg.CORBA.portable.Delegate.request()

                org.omg.CORBA_2_3.portable.InputStream in = null ;
                try {
                    // create request
                    org.omg.CORBA_2_3.portable.OutputStream out =
                        (org.omg.CORBA_2_3.portable.OutputStream)
                        delegate.request( stub, giopMethodName, true);

                    // marshal arguments
                    dmm.writeArguments( out, args ) ;

                    // finish invocation
View Full Code Here

Examples of org.reactivestreams.Subscription.request()

          }

          @Override
          public void onNext(T element) {
            Subscription subs = this.subscription.value();
            subs.request(1);
          }
        };

        env.subscribe(pub, sub);
View Full Code Here

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

        Source content = getSourceFromClassPath(fileOnClassPath);

        ServiceNameEndpointResolver resolver = new ServiceNameEndpointResolver(serviceName);

        ServiceMixClient client = new DefaultServiceMixClient(container);
        Object answer = client.request(resolver, null, null, content);
        if (answer instanceof Source) {
            answer = transformer.toDOMNode((Source) answer);
        }
        return answer;
    }
View Full Code Here

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

        TestBean bean = new TestBean();
        bean.setName("James");
        bean.setLength(12);
        bean.getAddresses().addAll(Arrays.asList(new String[] {"London", "LA"}));

        Object response = client.request(resolver, null, properties, bean);

        assertNotNull("Should have returned a non-null response!", response);

        System.out.println("Received result: " + response);
    }
View Full Code Here

Examples of org.sonar.batch.bootstrap.ServerClient.request()

  @Test
  public void should_download_source_from_ws_if_preview_mode() {
    db.prepareDbUnit(getClass(), "last_snapshot.xml");
    ServerClient server = mock(ServerClient.class);
    when(server.request(anyString(), eq("GET"), eq(false), eq(30 * 1000))).thenReturn("downloaded source of Bar.c");

    when(mode.isPreview()).thenReturn(true);
    LastSnapshots lastSnapshots = new LastSnapshots(mode, new SnapshotSourceDao(db.myBatis()), server);

    String source = lastSnapshots.getSource(newFile());
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.io.dav.http.IHTTPConnection.request()

        }
    }   
   
    public HTTPStatus doPropfind(String path, HTTPHeader header, StringBuffer body, DefaultHandler handler) throws SVNException {
        IHTTPConnection httpConnection = getConnection();
        return httpConnection.request("PROPFIND", path, header, body, -1, 0, null, handler);
    }
   
    public SVNLock doGetLock(String path, DAVRepository repos) throws SVNException {
        DAVBaselineInfo info = DAVUtil.getBaselineInfo(this, repos, path, -1, false, true, null);
        StringBuffer body = DAVLockHandler.generateGetLockRequest(null);
View Full Code Here

Examples of org.vertx.java.core.http.HttpClient.request()

    final HttpClient client = vertx.createHttpClient().setHost("localhost").setPort(8282);

    vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
      public void handle(final HttpServerRequest req) {
        System.out.println("Proxying request: " + req.uri());
        final HttpClientRequest cReq = client.request(req.method(), req.uri(), new Handler<HttpClientResponse>() {
          public void handle(HttpClientResponse cRes) {
            System.out.println("Proxying response: " + cRes.statusCode());
            req.response().setStatusCode(cRes.statusCode());
            req.response().headers().set(cRes.headers());
            req.response().setChunked(true);
View Full Code Here

Examples of org.zoolu.sip.transaction.TransactionClient.request()

      log.info("Registering contact " + contact + " (it expires in " + expireTime + " secs)");
    else
      log.info("Unregistering contact " + contact);
   
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }

  public void unregister() {
    if (isPeriodicallyRegistering()) {
      stopRegistering();
View Full Code Here

Examples of play.mvc.Http.Context.request()

        ODocument doc=FileService.getById(id);
        if (doc==null) return notFound(id + " file was not found");
        String filename=(String)doc.field("fileName");
       
        Context ctx=Http.Context.current.get();
        Boolean download = BooleanUtils.toBoolean(ctx.request().getQueryString(QUERY_STRING_FIELD_DOWNLOAD));
        String resize = ctx.request().getQueryString(QUERY_STRING_FIELD_RESIZE);
        boolean resizeIsEmpty=StringUtils.isEmpty(resize);
        Integer sizeId = Ints.tryParse(ctx.request().getQueryString(QUERY_STRING_FIELD_RESIZE_ID)+"");
       
        byte[] output;
View Full Code Here

Examples of sos.spooler.Web_service_operation.request()

            Order order = spooler_task.order();

            Web_service_operation operation = order.web_service_operation();
            if (operation == null) throw new Exception( "no web service operation available" );
           
            Web_service_request request = operation.request();
            if (request == null) throw new Exception( "no web service request available" );
            spooler_log.debug3( "content of web service request:\n" + request.string_content() );

            // should the request be previously transformed ...
            if (spooler_task.params().value("request_stylesheet") != null && spooler_task.params().value("request_stylesheet").length() > 0) {
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.