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  NameValuePairparameters into aapplication/x-www-form-urlencodedcontent string. | 
| static void | format(StringBuilder buf,
      Iterable<? extends NameValuePair> params,
      Charset charset)Formats the list of  NameValuePairparameters into aapplication/x-www-form-urlencodedcontent. | 
| static List<NameValuePair> | parse(CharSequence s,
     Charset charset)Returns a list of  NameValuePairparameters parsed
 from theapplication/x-www-form-urlencodedcontent. | 
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–2022 The Apache Software Foundation. All rights reserved.