URIBuilder to parse and format URIs and
 WWWFormCodec to parse and format application/x-www-form-urlencoded forms.@Deprecated public class URLEncodedUtils extends Object
| Constructor and Description | 
|---|
| URLEncodedUtils()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | format(Iterable<? extends NameValuePair> parameters,
      char parameterSeparator,
      Charset charset)Deprecated.  Returns a String that is suitable for use as an  application/x-www-form-urlencodedlist of parameters in an HTTP PUT or HTTP POST. | 
| static String | format(Iterable<? extends NameValuePair> parameters,
      Charset charset)Deprecated.  Returns a String that is suitable for use as an  application/x-www-form-urlencodedlist of parameters in an HTTP PUT or HTTP POST. | 
| static String | formatSegments(Iterable<String> segments,
              Charset charset)Deprecated.  Returns a string consisting of joint encoded path segments. | 
| static String | formatSegments(String... segments)Deprecated.  Returns a string consisting of joint encoded path segments. | 
| static List<NameValuePair> | parse(CharSequence s,
     Charset charset)Deprecated.  Returns a list of  NameValuePairs URI query parameters. | 
| static List<NameValuePair> | parse(CharSequence s,
     Charset charset,
     char... separators)Deprecated.  Returns a list of  NameValuePairs parameters. | 
| static List<NameValuePair> | parse(URI uri,
     Charset charset)Deprecated.  Returns a list of  NameValuePairs URI query parameters. | 
| static List<String> | parsePathSegments(CharSequence s)Deprecated.  Returns a list of URI path segments. | 
| static List<String> | parsePathSegments(CharSequence s,
                 Charset charset)Deprecated.  Returns a list of URI path segments. | 
public static List<NameValuePair> parse(URI uri, Charset charset)
NameValuePairs URI query parameters.
 By convention, '&' and ';' are accepted as parameter separators.uri - input URI.charset - parameter charset.public static List<NameValuePair> parse(CharSequence s, Charset charset)
NameValuePairs URI query parameters.
 By convention, '&' and ';' are accepted as parameter separators.s - URI query component.charset - charset to use when decoding the parameters.public static List<NameValuePair> parse(CharSequence s, Charset charset, char... separators)
NameValuePairs parameters.s - input text.charset - parameter charset.separators - parameter separators.public static List<String> parsePathSegments(CharSequence s, Charset charset)
s - URI path component.charset - parameter charset.public static List<String> parsePathSegments(CharSequence s)
s - URI path component.public static String formatSegments(Iterable<String> segments, Charset charset)
segments - the segments.charset - parameter charset.public static String formatSegments(String... segments)
segments - the segments.public static String format(Iterable<? extends NameValuePair> parameters, char parameterSeparator, Charset charset)
application/x-www-form-urlencoded
 list of parameters in an HTTP PUT or HTTP POST.parameters - The parameters to include.parameterSeparator - The parameter separator, by convention, '&' or ';'.charset - The encoding to use.application/x-www-form-urlencoded stringpublic static String format(Iterable<? extends NameValuePair> parameters, Charset charset)
application/x-www-form-urlencoded
 list of parameters in an HTTP PUT or HTTP POST.parameters - The parameters to include.charset - The encoding to use.application/x-www-form-urlencoded stringCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.