Examples of addParam()


Examples of com.googlecode.batchfb.util.RequestBuilder.addParam()

   * Actually verify the assertion (at the browserid.org website) and return the parsed results.
   */
  private static Assertion verifyOnce(String assertion, String audience) throws IOException {

    RequestBuilder request = new RequestBuilder(VERIFY_LINK, HttpMethod.POST);
    request.addParam("assertion", assertion);
    request.addParam("audience", audience);

    HttpResponse response = request.execute();
    if (response.getResponseCode() != HttpServletResponse.SC_OK)
      throw new IllegalStateException("Bad response code: " + response.getResponseCode());
View Full Code Here

Examples of com.googlecode.jslint4java.JSFunction.Builder.addParam()

            String name = Util.stringValue("name", scope);
            int line = Util.intValue("line", scope);
            Builder b = new JSFunction.Builder(name, line);
            b.last(Util.intValue("last", scope));
            for (String param : Util.listValueOfType("parameter", String.class, scope)) {
                b.addParam(param);
            }
            for (String closure : Util.listValueOfType("closure", String.class, scope)) {
                b.addClosure(closure);
            }
            for (String var : Util.listValueOfType("var", String.class, scope)) {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.http.HttpQuery.addParam()

    // vendor-specific sections of the query, we use the lower-level
    // com.hp.hpl.jena.sparql.engine.http.HttpQuery to execute the query and
    // read the results into model.
   
    HttpQuery httpQuery = new HttpQuery(endpointURL);
    httpQuery.addParam("query", query);
    if (defaultGraphURI != null) {
      httpQuery.addParam("default-graph-uri", defaultGraphURI);
    }
    for (String[] param: queryParamsGraph) {
      httpQuery.addParam(param[0], param[1]);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.http.HttpQuery.addParam()

    // read the results into model.
   
    HttpQuery httpQuery = new HttpQuery(endpointURL);
    httpQuery.addParam("query", query);
    if (defaultGraphURI != null) {
      httpQuery.addParam("default-graph-uri", defaultGraphURI);
    }
    for (String[] param: queryParamsGraph) {
      httpQuery.addParam(param[0], param[1]);
    }
   
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.http.Params.addParam()

     */
    public Params getParams() {
        Params ps = this.params != null ? new Params(this.params) : new Params();
        if (this.defaultGraphURIs != null) {
            for (String defaultGraph : this.defaultGraphURIs) {
                ps.addParam(HttpParams.pUsingGraph, defaultGraph);
            }
        }
        if (this.namedGraphURIs != null) {
            for (String namedGraph : this.namedGraphURIs) {
                ps.addParam(HttpParams.pUsingNamedGraph, namedGraph);
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.addParam()

    QueryEngineHTTP endpoint = new QueryEngineHTTP(endpointURL, query);
    if (defaultGraphURI != null) {
      endpoint.setDefaultGraphURIs(Collections.singletonList(defaultGraphURI));
    }
    for (String[] param: queryParamsSelect) {
      endpoint.addParam(param[0], param[1]);
    }
    return endpoint.execSelect();
  }
 
  private String preProcessQuery(String query, String resourceURI) {
View Full Code Here

Examples of com.jengine.orm.db.query.SQLQuery.addParam()

            query.addValue(field.getColumnName(), values.get(fieldName));
        }
        if (page.get("start") != null && page.get("end") != null) {
            query.setStart(page.get("start"));
            query.setEnd(page.get("end"));
            query.addParam(page.get("start"));
            query.addParam(page.get("end"));
        }

        return query;
    }
View Full Code Here

Examples of com.litecoding.smali2java.entity.smali.MethodRef.addParam()

      } else if(innerRule instanceof Rule_classMethodProto) {
        List<Param> protoParams = (List<Param>)innerRule.accept(this);
        ref.setReturnType(protoParams.remove(0).getType());
        smaliClass.addImport(ref.getReturnType());
        for(Param param : protoParams) {
          ref.addParam(param);
          smaliClass.addImport(param.getType());
        }
      }
    }
    return ref;
View Full Code Here

Examples of com.m4f.utils.search.impl.SearchParamsImpl.addParam()

    searchForm.setCollection(collection);
    try {
      if (q != null && !("").equals(q)) {
        StringTokenizer terms = new StringTokenizer(q.trim());
        SearchParamsImpl params = new SearchParamsImpl();
        params.addParam(PARAM.CLIENT, gsa_client);
        params.addParam(PARAM.SEARCH_URI, this.serviceLocator.getAppConfigurationService().
            getGlobalConfiguration().getSearchUri());
        params.addParam(PARAM.BASE_COLLECTION_NAME, collection);                       
        params.addParam(PARAM.LANG, locale.getLanguage());
        PageManager<ISearchResults> paginator = new PageManager<ISearchResults>();
View Full Code Here

Examples of com.opensymphony.xwork2.config.entities.ResultConfig.addParam()

public class ServletActionRedirectResultTest extends StrutsTestCase {
 
  public void testIncludeParameterInResultWithConditionParseOn() throws Exception {
   
    ResultConfig resultConfig = new ResultConfig();
    resultConfig.addParam("actionName", "someActionName");
    resultConfig.addParam("namespace", "someNamespace");
    resultConfig.addParam("encode", "true");
    resultConfig.addParam("parse", "true");
    resultConfig.addParam("location", "someLocation");
    resultConfig.addParam("prependServletContext", "true");
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.