Examples of addParameter()


Examples of com.google.code.http4j.impl.Get.addParameter()

  }

  @Test(dependsOnMethods = "toMessage")
  public void addParameter_string_strings() throws URISyntaxException, IOException {
    Get get = new Get("http://www.google.com/search");
    get.addParameter("q", "http4j");
    assertion(get, "GET /search?q=http4j HTTP/1.1\r\nHost:www.google.com\r\n" + getDefaultHeaderString() + "\r\n");
    get.addParameter("m", "GET", "POST");
    assertion(get, "GET /search?q=http4j&m=GET&m=POST HTTP/1.1\r\nHost:www.google.com\r\n" + getDefaultHeaderString() + "\r\n");
  }
 

Examples of com.google.code.http4j.impl.Post.addParameter()

  }
 
  @Test(dependsOnMethods = "toMessage")
  public void addParameter_string_strings() throws URISyntaxException, IOException {
    Post post = new Post("http://www.google.com/search");
    post.addParameter("q", "http4j");
    assertion(post, "POST /search HTTP/1.1\r\nHost:www.google.com\r\n" + getDefaultHeaderString() + "Content-Length:8\r\n\r\nq=http4j");
    post.addParameter("m", "GET", "POST");
    assertion(post, "POST /search HTTP/1.1\r\nHost:www.google.com\r\n" + getDefaultHeaderString() + "Content-Length:21\r\n\r\nq=http4j&m=GET&m=POST");
  }

Examples of com.google.gerrit.client.rpc.RestApi.addParameter()

/** Capabilities the caller has from {@code /accounts/self/capabilities}.  */
public class AccountCapabilities extends JavaScriptObject {
  public static void all(AsyncCallback<AccountCapabilities> cb, String... filter) {
    RestApi api = new RestApi("/accounts/self/capabilities");
    for (String name : filter) {
      api.addParameter("q", name);
    }
    api.send(cb);
  }

  protected AccountCapabilities() {

Examples of com.google.java.contract.core.model.MethodModel.addParameter()

                     ? trait.getExceptionName()
                     : "void");
    method.setReturnType(returnType);

    if (kind.getVariance() == ContractVariance.CONTRAVARIANT) {
      method.addParameter(
          new VariableModel(ElementKind.PARAMETER,
                            JavaUtils.ERROR_VARIABLE, returnType));
    }

    if (annotation.isPrimary()) {

Examples of com.google.wave.api.OperationRequest.addParameter()

        if (parameterType == ParamsProperty.RAW_DELTAS) {
          object = ctx.deserialize(parameter.getValue(), GsonFactory.RAW_DELTAS_TYPE);
        } else {
          object = ctx.deserialize(parameter.getValue(), parameterType.clazz());
        }
        request.addParameter(Parameter.of(parameterType, object));
      }
    }

    return request;
  }

Examples of com.ibm.mq.pcf.PCFMessage.addParameter()

   private void getQueueByType(PCFMessageAgent agent, int type, Collection destinations) throws PCFException, MQException, IOException
   {
      final PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_Q_NAMES);

      request.addParameter(CMQC.MQCA_Q_NAME, "*");
      request.addParameter(CMQC.MQIA_Q_TYPE, type);

      final PCFMessage[] responses = agent.send(request);
      final String[] names = (String[]) responses[0].getParameterValue(CMQCFC.MQCACF_Q_NAMES);

Examples of com.intellij.coldFusion.model.info.CfmlFunctionDescription.addParameter()

    PsiType returnType = function.getReturnType();
    CfmlFunctionDescription functionInfo = new CfmlFunctionDescription(function.getName(),
                                                                       returnType != null ? returnType.getCanonicalText() : null);
    CfmlParameter[] params = function.getParameters();
    for (CfmlParameter param : params) {
      functionInfo.addParameter(new CfmlFunctionDescription.CfmlParameterDescription(param.getName(), param.getType(), param.isRequired()));
    }
    return functionInfo;
  }
}

Examples of com.intellij.execution.configurations.GeneralCommandLine.addParameter()

                        List<String> options = new ArrayList<String>();
                        options.add("-i" + GHCUtil.rootsAsString(configuration.getModule(), false));
                        //GHCUtil.getGhcOptions(null, options); // todo!!!
                        commandLine.addParameters(options);
                        commandLine.addParameter(mainFile); // todo
                        commandLine.addParameters(parameters.getProgramParametersList().getParameters());
                        // todo: set other parameters/rt flags

                        return commandLine;
                    } catch (CantRunException e) {

Examples of com.mattinsler.guiceymongo.data.generator.option.Option.addParameter()

    assert GuiceyDataParser.OPTION == tree.getToken().getType();
   
    List<CommonTree> children = tree.getChildren();
    Option option = new Option(children.get(0).getText());
    if (children.size() == 2 && GuiceyDataParser.PAIR != children.get(1).getToken().getType())
      option.addParameter("value", parseLiteral(children.get(1)));
    else {
      for (int x = 1; x < children.size(); ++x) {
        if (GuiceyDataParser.PAIR == children.get(x).getToken().getType() && children.get(x).getChildCount() == 2)
          option.addParameter(children.get(x).getChild(0).getText(), parseLiteral(children.get(x).getChild(1)));
      }

Examples of com.mockturtlesolutions.snifflib.invprobs.MCMCBlock.addParameter()

        {
          varcompBlock.addParameter(parameters[p]);
        }
        else
        {
          otherBlock.addParameter(parameters[p]);
        }
      }

      this.est.addBlock(varcompBlock);
      this.est.addBlock(otherBlock);
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.