java.lang.Object
com.aoapps.net.URIParametersUtils
Utilities using
URIParameters
.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
addParams
(String uri, URIParameters params) Adds all of the parameters to a URI.static void
appendQueryString
(URIParameters params, Encoder encoder, Appendable out) Appends the query string encoded, not including the '?'static void
appendQueryString
(URIParameters params, Appendable out) Appends the query string encoded, not including the '?'static void
appendQueryString
(URIParameters params, StringBuffer sb) Appends the query string encoded, not including the '?'static void
appendQueryString
(URIParameters params, StringBuilder sb) Appends the query string encoded, not including the '?'static URIParameters
Returns the optimal type of parameters.static String
toQueryString
(URIParameters params) Gets the query string encoded, not including the '?'
-
Method Details
-
addParams
Adds all of the parameters to a URI.- Returns:
- The new URI or
uri
when not modified
-
appendQueryString
Appends the query string encoded, not including the '?' prefix.- Throws:
IOException
- See Also:
-
appendQueryString
public static void appendQueryString(URIParameters params, Encoder encoder, Appendable out) throws IOException Appends the query string encoded, not including the '?' prefix.- Throws:
IOException
- See Also:
-
appendQueryString
Appends the query string encoded, not including the '?' prefix. -
appendQueryString
Appends the query string encoded, not including the '?' prefix. -
toQueryString
Gets the query string encoded, not including the '?' prefix.- Returns:
- The query string or
null
for none. - See Also:
-
of
Returns the optimal type of parameters.- When @{code queryString} is
null
or""
:EmptyURIParameters
- Otherwise
URIParametersMap
.
- When @{code queryString} is
-