/** * Adds a query parameter to the URI query. * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(String name, Object value) throws RestCallException { return query(name, value, false, null, null); }
/** * Adds query parameters to the URI query. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(Map<String,Object> params) throws RestCallException { return query(null, params); }
/** * Adds a query parameter to the URI query. * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(String name, Object value) throws RestCallException { return query(name, value, false, null, null); }
/** * Adds a query parameter to the URI query. * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(String name, Object value) throws RestCallException { return query(name, value, false, null, null); }
/** * Adds query parameters to the URI query. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(Map<String,Object> params) throws RestCallException { return query(null, params); }
/** * Adds query parameters to the URI query. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall query(Map<String,Object> params) throws RestCallException { return query(null, params); }
/** * Adds query parameters to the URI for any parameters that aren't null/empty. * * <p> * NE = "not empty" * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(Map<String,Object> params) throws RestCallException { return query(null, params, true, null, null); }
/** * Adds query parameters to the URI for any parameters that aren't null/empty. * * <p> * NE = "not empty" * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(Map<String,Object> params) throws RestCallException { return query(null, params, true, null, null); }
/** * Adds query parameters to the URI for any parameters that aren't null/empty. * * <p> * NE = "not empty" * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(Map<String,Object> params) throws RestCallException { return query(null, params, true, null, null); }
/** * Adds a query parameter to the URI query if the parameter value is not <jk>null</jk> or an empty string. * * <p> * NE = "not empty" * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(String name, Object value) throws RestCallException { return query(name, value, true, null, null); }
/** * Adds a query parameter to the URI query if the parameter value is not <jk>null</jk> or an empty string. * * <p> * NE = "not empty" * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(String name, Object value) throws RestCallException { return query(name, value, true, null, null); }
/** * Adds a query parameter to the URI query if the parameter value is not <jk>null</jk> or an empty string. * * <p> * NE = "not empty" * * @param name The parameter name. * @param value The parameter value converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException */ public RestCall queryIfNE(String name, Object value) throws RestCallException { return query(name, value, true, null, null); }
restCall.query(e.getKey(), e.getValue());
restCall.query(e.getKey(), e.getValue());
restCall.query(e.getKey(), e.getValue());
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); return query(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { try {
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); return query(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { try {
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) query(n, v, skipIfEmpty, serializer, s); return query(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { try {