public class WWWFormCodec extends Object
application/x-www-form-urlencoded
codec.Constructor and Description |
---|
WWWFormCodec() |
Modifier and Type | Method and Description |
---|---|
static String |
format(Iterable<? extends NameValuePair> params,
Charset charset)
Formats the list of
NameValuePair parameters into a application/x-www-form-urlencoded
content string. |
static void |
format(StringBuilder buf,
Iterable<? extends NameValuePair> params,
Charset charset)
Formats the list of
NameValuePair parameters into a application/x-www-form-urlencoded
content. |
static List<NameValuePair> |
parse(CharSequence s,
Charset charset)
Returns a list of
NameValuePair parameters parsed
from the application/x-www-form-urlencoded content. |
public static List<NameValuePair> parse(CharSequence s, Charset charset)
NameValuePair
parameters parsed
from the application/x-www-form-urlencoded
content.s
- input text.charset
- parameter charset.public static void format(StringBuilder buf, Iterable<? extends NameValuePair> params, Charset charset)
NameValuePair
parameters into a application/x-www-form-urlencoded
content.buf
- the content bufferparams
- The from parameters.charset
- The encoding to use.public static String format(Iterable<? extends NameValuePair> params, Charset charset)
NameValuePair
parameters into a application/x-www-form-urlencoded
content string.params
- The from parameters.charset
- The encoding to use.Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.