Examples of addParameter()


Examples of com.alibaba.dubbo.common.URL.addParameter()

        if (! Constants.ANY_VALUE.equals(url.getServiceInterface())
                && url.getParameter(Constants.REGISTER_KEY, true)) {
            registry.register(subscribeUrl.addParameters(Constants.CATEGORY_KEY, Constants.CONSUMERS_CATEGORY,
                    Constants.CHECK_KEY, String.valueOf(false)));
        }
        directory.subscribe(subscribeUrl.addParameter(Constants.CATEGORY_KEY,
                Constants.PROVIDERS_CATEGORY
                + "," + Constants.CONFIGURATORS_CATEGORY
                + "," + Constants.ROUTERS_CATEGORY));
        return cluster.join(directory);
    }

Examples of com.alibaba.fastjson.JSONPObject.addParameter()


public class JSONPObjectTest extends TestCase {
    public void test_jsonp() throws Exception {
        JSONPObject jsonp = new JSONPObject("checkValid");
        jsonp.addParameter(new HashMap<String, Object>());
        jsonp.addParameter(new ArrayList<Object>());
       
        String text = jsonp.toString();
       
        Assert.assertEquals("checkValid({},[])", text);

Examples of com.amazonaws.DefaultRequest.addParameter()

        request.setEndpoint(httpRequest.getEndpoint());
        request.setHttpMethod(httpRequest.getMethodName());
        request.setResourcePath(httpRequest.getResourcePath());

        for (Entry<String, String> parameter : httpRequest.getParameters().entrySet()) {
            request.addParameter(parameter.getKey(), parameter.getValue());
        }

        for (Entry<String, String> parameter : httpRequest.getHeaders().entrySet()) {
            request.addHeader(parameter.getKey(), parameter.getValue());
        }

Examples of com.amazonaws.http.HttpRequest.addParameter()

     */
    @Deprecated
    protected <T> HttpRequest convertToHttpRequest(Request<T> request, HttpMethodName methodName) {
        HttpRequest httpRequest = new HttpRequest(methodName);
        for (Entry<String, String> parameter : request.getParameters().entrySet()) {
            httpRequest.addParameter(parameter.getKey(), parameter.getValue());
        }

        for (Entry<String, String> parameter : request.getHeaders().entrySet()) {
            httpRequest.addHeader(parameter.getKey(), parameter.getValue());
        }

Examples of com.asakusafw.compiler.operator.OperatorMethodDescriptor.Builder.addParameter()

                annotation.outputPort(),
                a.getParameterType(0).getType(),
                a.getParameterName(0),
                0);
        for (int i = 1, n = a.countParameters(); i < n; i++) {
            builder.addParameter(
                    a.getParameterDocument(i),
                    a.getParameterName(i),
                    a.getParameterType(i).getType(),
                    i);
        }

Examples of com.avaje.ebeaninternal.server.core.DefaultSqlUpdate.addParameter()

   
    private SqlUpdate deleteByParentId(Object parentId) {
       
        DefaultSqlUpdate delete = new DefaultSqlUpdate(deleteByParentIdSql);
        if (exportedProperties.length == 1){
            delete.addParameter(parentId);
        } else {
            targetDescriptor.getIdBinder().bindId(delete, parentId);
        }
        return delete;
    }

Examples of com.box.restclientv2.httpclientsupport.HttpClientURIBuilder.addParameter()

     */
    public URI buildUrl() throws URISyntaxException {
        HttpClientURIBuilder ub = new HttpClientURIBuilder(getUrlPath());
        ub.setHost(getHost());
        ub.setScheme(getScheme());
        ub.addParameter("response_type", getResponseType());
        ub.addParameter("client_id", getClientId());
        if (StringUtils.isNotEmpty(getOptionalState())) {
            ub.addParameter("state", getOptionalState());
        }
        HttpClientURLEncodedUtils.format(ub.getQueryParams(), "UTF-8");

Examples of com.commander4j.db.JDBQuery.addParameter()

    query.addText(" where sscc in (" + mList + ")");

    for (int t = 0; t <= (mItems.size() - 1); t++)
    {
      query.addParameter(mItems.get(t));
    }

    query.appendSort("sscc", "asc");
    query.applyRestriction(false, "none", 0);
    query.bindParams();

Examples of com.commander4j.db.JDBReportRequest.addParameter()

  {
    String sessionID = session.getId();
    JDBReportRequest rr = new JDBReportRequest(Common.sd.getData(sessionID, "selectedHost"), sessionID);
    String printQueue = Common.sd.getData(sessionID, "defaultPrinter");
    rr.defineReport("RPT_DESPATCH_SERVICE", "ParameterOnly", ":", "", printQueue, 1);
    rr.addParameter("p_despatch_no", "String", Common.sd.getData(sessionID, "despatchNo"));
    rr.create();
  }

  private synchronized void despatchSelect(HttpServletRequest request, HttpServletResponse response, String button) throws ServletException, IOException
  {

Examples of com.cordys.cpc.bsf.busobject.QueryObject.addParameter()

    public static BusObjectIterator<com.cordys.demo.servicedesk.dao.SOLUTIONS> getSolutionsObjects(int fromSOLUTIONID, int toSOLUTIONID, com.cordys.cpc.bsf.query.Cursor cursor)
    {
        String queryText = "select * from \"SOLUTIONS\" where \"SOLUTIONID\" between :fromSOLUTIONID and :toSOLUTIONID";
        QueryObject query = new QueryObject(queryText);
        query.addParameter("fromSOLUTIONID", "SOLUTIONS.SOLUTIONID", QueryObject.PARAM_INT, new Integer(fromSOLUTIONID));
        query.addParameter("toSOLUTIONID", "SOLUTIONS.SOLUTIONID", QueryObject.PARAM_INT, new Integer(toSOLUTIONID));
        query.setResultClass(SOLUTIONS.class);
        query.setCursor(cursor);
        return query.getObjects();
    }
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.