Examples of addParameter()


Examples of com.cosmo.net.URL.addParameter()

      if (!getWorkspace().isValidUserSession())
      {
         // Configura la url del login
         URL url = new URL(getWorkspace().getProperties().getSecurityProperties().getLoginPage());
         url.addParameter("tourl", getWorkspace().getRequestedUrl());

         // Genera el XHTML del widget
         xhtml += ctrl.getElement(WPART_LOGIN);
         xhtml = Control.replaceTag(xhtml, TAG_HREF, url.build(getWorkspace().getCharset()));
      }

Examples of com.eclipsesource.json.performancetest.caliper.CaliperRunner.addParameter()

    }
  }

  public static void main( String[] args ) throws IOException {
    CaliperRunner runner = new CaliperRunner( BufferedReaderBenchmark.class );
    runner.addParameter( "parser", "null", "gson", "jackson", "minimal-json" );
    runner.addParameter( "input", "rap", "caliper", "long-string", "numbers-array" );
    runner.exec();
  }

}

Examples of com.enioka.jqm.api.JobRequest.addParameter()

    {
        System.out.println("PARAMETRE FIBO 2: " + this.getParameters().get("p2"));

        JobRequest jd = new JobRequest("FiboHib", "Jean Paul");

        jd.addParameter("p1", this.getParameters().get("p2"));
        jd.addParameter("p2", (Integer.parseInt(this.getParameters().get("p1")) + Integer.parseInt(this.getParameters().get("p2")) + ""));
        System.out.println("BEFORE ENQUEUE");

        if (Integer.parseInt(this.getParameters().get("p1")) <= 100)
        {

Examples of com.enioka.jqm.jpamodel.JobInstance.addParameter()

            ji.setInternalPosition(ji.getId());

            for (JobParameter jp : jps)
            {
                jqmlogger.trace("Parameter: " + jp.getKey() + " - " + jp.getValue());
                em.persist(ji.addParameter(jp.getKey(), jp.getValue()));
            }
            jqmlogger.trace("JI just created: " + ji.getId());

            em.getTransaction().commit();
            return ji.getId();

Examples of com.esri.gpt.catalog.search.MapViewerConfigs.addParameter()

    NodeList pNodeList = (NodeList) xpath.evaluate("parameter", nd, XPathConstants.NODESET);
    for (int k = 0; pNodeList != null && k < pNodeList.getLength(); k++) {
      String key = xpath.evaluate("@key", pNodeList.item(k));
      String value = xpath.evaluate("@value", pNodeList.item(k));
      if (key != null || value != null) {
        mvConfigs.addParameter(key, value);
      }
    }
    mapViewerConfigs.add(mvConfigs);

  }

Examples of com.facebook.swift.generator.template.MethodContext.addParameter()

        for (ThriftMethod method: service.getMethods()) {
            final MethodContext methodContext = contextGenerator.methodFromThrift(method);
            serviceContext.addMethod(methodContext);

            for (final ThriftField field : method.getArguments()) {
                methodContext.addParameter(contextGenerator.fieldFromThrift(field));
            }

            for (final ThriftField field : method.getThrowsFields()) {
                methodContext.addException(contextGenerator.exceptionFromThrift(field));
            }

Examples of com.fasterxml.clustermate.api.RequestPathBuilder.addParameter()

        final KeyRange syncRange = local.totalRange();
        final ServiceConfig config = _stuff.getServiceConfig();
        RequestPathBuilder pathBuilder = new JdkHttpClientPathBuilder(remote.getAddress())
            .addPathSegments(config.servicePathRoot);
        pathBuilder = _stuff.getPathStrategy().appendSyncListPath(pathBuilder);
        pathBuilder = pathBuilder.addParameter(ClusterMateConstants.HTTP_QUERY_PARAM_SINCE,
                String.valueOf(syncedUpTo));
        pathBuilder = pathBuilder.addParameter(ClusterMateConstants.HTTP_QUERY_PARAM_KEYRANGE_START, String.valueOf(syncRange.getStart()));
        pathBuilder = pathBuilder.addParameter(ClusterMateConstants.HTTP_QUERY_PARAM_KEYRANGE_LENGTH, String.valueOf(syncRange.getLength()));
        // this will include 'caller' param:
        pathBuilder = cluster.addClusterStateInfo(pathBuilder);

Examples of com.fasterxml.clustermate.std.JdkHttpClientPathBuilder.addParameter()

        }
       
        JdkHttpClientPathBuilder path = _server.rootPath();
        path = _pathFinder.appendPath(path, PathType.STORE_LIST);
        path = _keyConverter.appendToPath(path, prefix);
        path.addParameter(ClusterMateConstants.QUERY_PARAM_MAX_ENTRIES, String.valueOf(maxResults))
                .addParameter(ClusterMateConstants.QUERY_PARAM_TYPE, type.toString())
                ;
        if (lastSeen != null) {
            path = path.addParameter(ClusterMateConstants.QUERY_PARAM_LAST_SEEN, toBase64(lastSeen.asBytes()));
        }

Examples of com.fourspaces.couchdb.Update.addParameter()

 
  @Test
  public void testPUTUpdate()
      throws Exception {
    Update putUpdate = new Update("junit/put", "test_data");
    putUpdate.addParameter("field1", "UpdatedByPUT");
       
    boolean result = foo.updateDocument(putUpdate);
    assertTrue(result);
   
    // Retrieve the field and make sure the value is correct

Examples of com.gistlabs.mechanize.util.apache.URIBuilder.addParameter()

      for(Parameter param : parameters)
        if(param.isSingleValue())
          builder.setParameter(param.getName(), param.getValue());
        else
          for(String value : param.getValues())
            builder.addParameter(param.getName(), value);

      URI requestURI = builder.build();
      uri = requestURI.toString();
      return new HttpGet(requestURI);
    }
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.