Package org.apache.hc.core5.net
Class URLEncodedUtils
java.lang.Object
org.apache.hc.core5.net.URLEncodedUtils
Deprecated.
A collection of utilities for encoding URLs.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
Deprecated.private static final char
Deprecated.private static final BitSet
Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
format
(Iterable<? extends NameValuePair> parameters, char parameterSeparator, Charset charset) Deprecated.Returns a String that is suitable for use as anapplication/x-www-form-urlencoded
list 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 anapplication/x-www-form-urlencoded
list 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 ofNameValuePair
s URI query parameters.static List
<NameValuePair> parse
(CharSequence s, Charset charset, char... separators) Deprecated.Returns a list ofNameValuePair
s parameters.static List
<NameValuePair> Deprecated.Returns a list ofNameValuePair
s URI query parameters.Deprecated.Returns a list of URI path segments.parsePathSegments
(CharSequence s, Charset charset) Deprecated.Returns a list of URI path segments.
-
Field Details
-
QP_SEP_A
private static final char QP_SEP_ADeprecated.- See Also:
-
QP_SEP_S
private static final char QP_SEP_SDeprecated.- See Also:
-
URL_ENCODER
Deprecated.
-
-
Constructor Details
-
URLEncodedUtils
public URLEncodedUtils()Deprecated.
-
-
Method Details
-
parse
Deprecated.Returns a list ofNameValuePair
s URI query parameters. By convention,'&'
and';'
are accepted as parameter separators.- Parameters:
uri
- input URI.charset
- parameter charset.- Returns:
- list of query parameters.
- Since:
- 4.5
-
parse
Deprecated.Returns a list ofNameValuePair
s URI query parameters. By convention,'&'
and';'
are accepted as parameter separators.- Parameters:
s
- URI query component.charset
- charset to use when decoding the parameters.- Returns:
- list of query parameters.
- Since:
- 4.2
-
parse
Deprecated.Returns a list ofNameValuePair
s parameters.- Parameters:
s
- input text.charset
- parameter charset.separators
- parameter separators.- Returns:
- list of query parameters.
- Since:
- 4.4
-
parsePathSegments
Deprecated.Returns a list of URI path segments.- Parameters:
s
- URI path component.charset
- parameter charset.- Returns:
- list of segments.
- Since:
- 4.5
-
parsePathSegments
Deprecated.Returns a list of URI path segments.- Parameters:
s
- URI path component.- Returns:
- list of segments.
- Since:
- 4.5
-
formatSegments
Deprecated.Returns a string consisting of joint encoded path segments.- Parameters:
segments
- the segments.charset
- parameter charset.- Returns:
- URI path component
- Since:
- 4.5
-
formatSegments
Deprecated.Returns a string consisting of joint encoded path segments.- Parameters:
segments
- the segments.- Returns:
- URI path component
- Since:
- 4.5
-
format
public static String format(Iterable<? extends NameValuePair> parameters, char parameterSeparator, Charset charset) Deprecated.Returns a String that is suitable for use as anapplication/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST.- Parameters:
parameters
- The parameters to include.parameterSeparator
- The parameter separator, by convention,'&'
or';'
.charset
- The encoding to use.- Returns:
- An
application/x-www-form-urlencoded
string - Since:
- 4.3
-
format
Deprecated.Returns a String that is suitable for use as anapplication/x-www-form-urlencoded
list of parameters in an HTTP PUT or HTTP POST.- Parameters:
parameters
- The parameters to include.charset
- The encoding to use.- Returns:
- An
application/x-www-form-urlencoded
string - Since:
- 4.2
-
URIBuilder
to parse and formatURI
s andWWWFormCodec
to parse and formatapplication/x-www-form-urlencoded
forms.