Package com.ocs.dynamo.utils
Class UrlUtils
- java.lang.Object
-
- com.ocs.dynamo.utils.UrlUtils
-
public final class UrlUtils extends Object
Some utilities to simplify working with URL's- Author:
- Patrick Deenen (patrick@opencircle.solutions)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URIcreateUrl(String hostAndPath, String... keyValues)Create an http url query with the given key value parameters, will apply url encoding on the parameter values.
-
-
-
Method Detail
-
createUrl
public static URI createUrl(String hostAndPath, String... keyValues) throws URISyntaxException
Create an http url query with the given key value parameters, will apply url encoding on the parameter values.- Parameters:
hostAndPath- the base urlkeyValues- Provide key1, value1, key2, value2, etc.- Returns:
- The URI
- Throws:
URISyntaxException
-
-