/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param nameValuePairs The name-value pairs of the request. * @return This object (for method chaining). * @throws RestCallException */ public RestCall formData(NameValuePairs nameValuePairs) throws RestCallException { return formData(null, nameValuePairs); }
/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(Map<String,Object> params) throws RestCallException { return formData(null, params); }
/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param nameValuePairs The name-value pairs of the request. * @return This object (for method chaining). * @throws RestCallException */ public RestCall formData(NameValuePairs nameValuePairs) throws RestCallException { return formData(null, nameValuePairs); }
/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(Map<String,Object> params) throws RestCallException { return formData(null, params); }
/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param nameValuePairs The name-value pairs of the request. * @return This object (for method chaining). * @throws RestCallException */ public RestCall formData(NameValuePairs nameValuePairs) throws RestCallException { return formData(null, nameValuePairs); }
/** * Adds form data pairs to this request to perform a URL-encoded form post. * * @param params The parameters. Values are converted to a string using UON notation. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(Map<String,Object> params) throws RestCallException { return formData(null, params); }
/** * Adds form data parameters to the request 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 formDataIfNE(Map<String,Object> params) throws RestCallException { return formData(null, params, true, null, null); }
/** * Adds form data parameters to the request 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 formDataIfNE(Map<String,Object> params) throws RestCallException { return formData(null, params, true, null, null); }
/** * Adds form data parameters to the request 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 formDataIfNE(Map<String,Object> params) throws RestCallException { return formData(null, params, true, null, null); }
/** * Adds a form data pair to this request to perform a URL-encoded form post. * * @param name * The parameter name. * Can be null/blank if the value is a {@link Map} or {@link NameValuePairs}. * @param value * The parameter value converted to a string using UON notation. * Can also be a {@link Map} or {@link NameValuePairs}. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(String name, Object value) throws RestCallException { return formData(name, value, false, null, null); }
/** * Adds a form data pair to the request 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 formDataIfNE(String name, Object value) throws RestCallException { return formData(name, value, true, null, null); }
/** * Adds a form data pair to the request 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 formDataIfNE(String name, Object value) throws RestCallException { return formData(name, value, true, null, null); }
/** * Adds a form data pair to the request 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 formDataIfNE(String name, Object value) throws RestCallException { return formData(name, value, true, null, null); }
/** * Adds a form data pair to this request to perform a URL-encoded form post. * * @param name * The parameter name. * Can be null/blank if the value is a {@link Map} or {@link NameValuePairs}. * @param value * The parameter value converted to a string using UON notation. * Can also be a {@link Map} or {@link NameValuePairs}. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(String name, Object value) throws RestCallException { return formData(name, value, false, null, null); }
/** * Adds a form data pair to this request to perform a URL-encoded form post. * * @param name * The parameter name. * Can be null/blank if the value is a {@link Map} or {@link NameValuePairs}. * @param value * The parameter value converted to a string using UON notation. * Can also be a {@link Map} or {@link NameValuePairs}. * @return This object (for method chaining). * @throws RestCallException If name was null/blank and value wasn't a {@link Map} or {@link NameValuePairs}. */ public RestCall formData(String name, Object value) throws RestCallException { return formData(name, value, false, null, null); }
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) formData(n, v, skipIfEmpty, serializer, s); return formData(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { contentType("application/x-www-form-urlencoded");
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) formData(n, v, skipIfEmpty, serializer, s); return formData(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { contentType("application/x-www-form-urlencoded");
HttpPartSchema s = schema.getProperty(n); if (canAdd(v, s, skipIfEmpty)) formData(n, v, skipIfEmpty, serializer, s); return formData(name, toBeanMap(value), skipIfEmpty, serializer, schema); } else if (value instanceof Reader || value instanceof InputStream) { contentType("application/x-www-form-urlencoded");