/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException { return form(entry, CHARSET_UTF8); }
/** * Write the values in the map as form data to the request body * <p> * The pairs specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param values * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values) throws HttpRequestException { return form(values, CHARSET_UTF8); }
/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException { return form(entry, CHARSET_UTF8); }
/** * Write the key and value in the entry as form data to the request body * <p/> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException { return form(entry, CHARSET_UTF8); }
/** * Write the values in the map as form data to the request body * <p/> * The pairs specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param values * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values) throws HttpRequestException { return form(values, CHARSET_UTF8); }
/** * Write the values in the map as form data to the request body * <p> * The pairs specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param values * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values) throws HttpRequestException { return form(values, CHARSET_UTF8); }
/** * Write the values in the map as form data to the request body * <p> * The pairs specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param values * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values) throws HttpRequestException { return form(values, CHARSET_UTF8); }
/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry) throws HttpRequestException { return form(entry, CHARSET_UTF8); }
/** * Write the name/value pair as form data to the request body * <p/> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param name * @param value * @return this request * @throws HttpRequestException */ public HttpRequest form(final Object name, final Object value) throws HttpRequestException { return form(name, value, CHARSET_UTF8); }
/** * Write the name/value pair as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param name * @param value * @return this request * @throws HttpRequestException */ public HttpRequest form(final Object name, final Object value) throws HttpRequestException { return form(name, value, CHARSET_UTF8); }
/** * Write the name/value pair as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param name * @param value * @return this request * @throws HttpRequestException */ public HttpRequest form(final Object name, final Object value) throws HttpRequestException { return form(name, value, CHARSET_UTF8); }
/** * Write the name/value pair as form data to the request body * <p> * The pair specified will be URL-encoded in UTF-8 and sent with the * 'application/x-www-form-urlencoded' content-type * * @param name * @param value * @return this request * @throws HttpRequestException */ public HttpRequest form(final Object name, final Object value) throws HttpRequestException { return form(name, value, CHARSET_UTF8); }
/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry, final String charset) throws HttpRequestException { return form(entry.getKey(), entry.getValue(), charset); }
/** * Write the values in the map as encoded form data to the request body * * @param values * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values, final String charset) throws HttpRequestException { if (!values.isEmpty()) for (Entry<?, ?> entry : values.entrySet()) form(entry, charset); return this; }
/** * Write the values in the map as encoded form data to the request body * * @param values * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values, final String charset) throws HttpRequestException { if (!values.isEmpty()) for (Entry<?, ?> entry : values.entrySet()) form(entry, charset); return this; }
/** * Write the values in the map as encoded form data to the request body * * @param values * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values, final String charset) throws HttpRequestException { if (!values.isEmpty()) for (Entry<?, ?> entry : values.entrySet()) form(entry, charset); return this; }
/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry, final String charset) throws HttpRequestException { return form(entry.getKey(), entry.getValue(), charset); }
/** * Write the key and value in the entry as form data to the request body * <p> * The pair specified will be URL-encoded and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry, final String charset) throws HttpRequestException { return form(entry.getKey(), entry.getValue(), charset); }
/** * Write the values in the map as encoded form data to the request body * * @param values * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Map<?, ?> values, final String charset) throws HttpRequestException { if (!values.isEmpty()) for (Entry<?, ?> entry : values.entrySet()) form(entry, charset); return this; }
/** * Write the key and value in the entry as form data to the request body * <p/> * The pair specified will be URL-encoded and sent with the * 'application/x-www-form-urlencoded' content-type * * @param entry * @param charset * @return this request * @throws HttpRequestException */ public HttpRequest form(final Entry<?, ?> entry, final String charset) throws HttpRequestException { return form(entry.getKey(), entry.getValue(), charset); }