Class UrlHelper
- java.lang.Object
-
- com.aspose.cad.cloud.invoker.internal.UrlHelper
-
public class UrlHelper extends Object
URL helper class
-
-
Constructor Summary
Constructors Constructor Description UrlHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
addPathParameter(String url, String parameterName, Object parameterValue)
Adds the path parameter.static String
addQueryParameterToUrl(String url, String parameterName, Object parameterValue)
Adds the query parameter to URL.
-
-
-
Method Detail
-
addPathParameter
public static String addPathParameter(String url, String parameterName, Object parameterValue)
Adds the path parameter.- Parameters:
url
- The URL.parameterName
- Name of the parameter.parameterValue
- The parameter value.- Returns:
- Resulting URL.
-
addQueryParameterToUrl
public static String addQueryParameterToUrl(String url, String parameterName, Object parameterValue) throws IllegalArgumentException, URISyntaxException
Adds the query parameter to URL.- Parameters:
url
- The URL.parameterName
- Name of the parameter.parameterValue
- The parameter value.- Returns:
- Resulting URL.
- Throws:
IllegalArgumentException
URISyntaxException
-
-