public class URLEncodedFormContent extends HttpContent
content| Constructor and Description |
|---|
URLEncodedFormContent() |
URLEncodedFormContent(java.nio.charset.Charset charset) |
URLEncodedFormContent(java.util.Map<java.lang.String,java.lang.String> entries) |
URLEncodedFormContent(java.util.Map<java.lang.String,java.lang.String> entries,
java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
compute() |
int |
getContentLength() |
URLEncodedFormContent |
put(java.lang.String key,
java.lang.String value)
Add a new entry to the form.
|
bytes, bytes, file, form, form, getAsBytes, getAsString, getAsString, getContentType, string, stringpublic URLEncodedFormContent()
public URLEncodedFormContent(@Nonnull
java.util.Map<java.lang.String,java.lang.String> entries)
public URLEncodedFormContent(@Nonnull
java.nio.charset.Charset charset)
public URLEncodedFormContent(@Nonnull
java.util.Map<java.lang.String,java.lang.String> entries,
@Nonnull
java.nio.charset.Charset charset)
public URLEncodedFormContent put(@Nonnull java.lang.String key, @Nonnull java.lang.String value)
key - The keyvalue - The valuepublic int getContentLength()
getContentLength in class HttpContentprotected byte[] compute()
compute in class HttpContent