Examples of request()


Examples of aQute.bnd.service.ResourceHandle.request()

        try {
            File file;
            if (repo instanceof RemoteRepositoryPlugin) {
                ResourceHandle handle = ((RemoteRepositoryPlugin) repo).getHandle(bsn, "latest", Strategy.HIGHEST, null);
                if (handle.getLocation() == Location.local || handle.getLocation() == Location.remote_cached)
                    file = handle.request();
                else
                    file = null;
            } else {
                SortedSet<Version> versions = repo.versions(bsn);
                if (versions == null || versions.isEmpty())
View Full Code Here

Examples of ariba.ui.aribaweb.core.AWRequestContext.request()

        AWComponent modalPageComponent = null;
        AWRequestContext requestContext = requestContext();
        String windowNameString = StringUtil.strcat("aw", _elementId.string());
        AWEncodedString windowName =
            AWEncodedString.sharedEncodedString(windowNameString);
        AWRequest request = requestContext.request();
        String shouldClose = request.formValueForKey("awshouldClose");
        if (shouldClose != null) {
            // Go down this path when the modal window closes
            // flush the page cache and cycle the current page
            session().removePageCache(windowName);
View Full Code Here

Examples of com.acme.util.jms.QueueRequestor.request()

         QueueRequestor requestor = new QueueRequestor((QueueSession)session, dlq);

         connection.start();
        
         Message request = session.createTextMessage(messageBody);
         Message response = requestor.request(request, 5000);
        
         Assert.assertEquals(
               "Should have responded with same message",
               messageBody,
               ((TextMessage)response).getText());
View Full Code Here

Examples of com.agendabeleza.utils.HerokuClient.request()

    HerokuClient client = new HerokuClient(Heroku.HOST + Heroku.COMPANY_SERVICES + pCompanyModel.getAzId());
    CompanyModel tCompany;

    try {
      tCompany = (CompanyModel) client.request(CompanyModel.class);
      if (tCompany.getId() == null) {
        return false;
      } else {
        pCompanyModel.setId(tCompany.getId());
        return true;
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.ExchangeChannel.request()

      StringBuilder sb = new StringBuilder();
      for(int j=0;j<i*100;j++)
        sb.append("("+random.nextLong()+")");
      Main.Data d = new Main.Data();
      d.setData(sb.toString());
      client.request(d).get();
    }
    System.out.println("send finished.");
  }

  static void mutliThreadTest(int tc,final int port) throws Exception
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.ExchangeClient.request()

                return new RpcResult();
            }
            int timeout = getUrl().getMethodParameter(invocation.getMethodName(),
                    Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT);
            if (timeout > 0) {
                return (Result) currentClient.request(inv, timeout).get();
            } else {
                return (Result) currentClient.request(inv).get();
            }
        } catch (RpcException e) {
            throw e;
View Full Code Here

Examples of com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeClient.request()

                return new RpcResult();
            }
            int timeout = getUrl().getMethodParameter(invocation.getMethodName(),
                    Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT);
            if (timeout > 0) {
                return (Result) currentClient.request(inv, timeout).get();
            } else {
                return (Result) currentClient.request(inv).get();
            }
        } catch (RpcException e) {
            throw e;
View Full Code Here

Examples of com.bj58.spat.gaea.client.loadbalance.Server.request()

            if (server == null) {
                logger.error("cannot get server");
                throw new Exception("cannot get server");
            }
            try{
              receiveP = server.request(sendP);
              break;
            } catch(IOException io){
              if(count == 0 || i == ioreconnect){
                throw io;
              }
View Full Code Here

Examples of com.caucho.server.webapp.WebAppController.request()

      WebAppContainer webAppContainer = host.getWebAppContainer();
     
      WebAppController controller = webAppContainer.findByURI(url);
      if (controller != null) {
        try {
          controller.request();
        } catch (Throwable e) {
          log.log(Level.WARNING, e.toString(), e);
        }
      }
View Full Code Here

Examples of com.github.dreamhead.moco.HttpServer.request()

        return thisServer.mergeHttpServer((ActualSocketServer)parsedServer);
    }

    private HttpServer createHttpServer(Iterable<? extends RunnerSetting> settings, StartArgs startArgs) {
        HttpServer server = createBaseHttpServer(settings, startArgs);
        server.request(by(uri("/favicon.ico"))).response(with(pathResource("favicon.png")), header("Content-Type", "image/png"));
        return server;
    }

    private HttpServer createBaseHttpServer(Iterable<? extends RunnerSetting> settings, StartArgs startArgs) {
        HttpServer server = createHttpServer(startArgs);
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.