java.lang.Object
com.aoapps.net.URIParametersUtils
Utilities using
URIParameters.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddParams(String uri, URIParameters params) Adds all of the parameters to a URI.static voidappendQueryString(URIParameters params, Encoder encoder, Appendable out) Appends the query string encoded, not including the '?'static voidappendQueryString(URIParameters params, Appendable out) Appends the query string encoded, not including the '?'static voidappendQueryString(URIParameters params, StringBuffer sb) Appends the query string encoded, not including the '?'static voidappendQueryString(URIParameters params, StringBuilder sb) Appends the query string encoded, not including the '?'static URIParametersReturns the optimal type of parameters.static StringtoQueryString(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
uriwhen 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
nullfor none. - See Also:
-
of
Returns the optimal type of parameters.- When @{code queryString} is
nullor"":EmptyURIParameters - Otherwise
URIParametersMap.
- When @{code queryString} is
-
