Package com.saperion.ngc.util
Class URLUtil
java.lang.Object
com.saperion.ngc.util.URLUtil
This class contains utility methods for URL related operations.
-
Method Summary
Modifier and TypeMethodDescriptionbuildQueryMapFromString
(String queryString) static String
buildQueryStringFromMapArray
(Map<String, String[]> parameterMap) static String
buildQueryStringFromMapList
(Map<String, List<String>> parameterMap) static String
Returns the current URL of the Web Client without request path and query string.static String
This method returns the current URL of the Web Client including server name, port, context path and query string.static String
Returns the query string from the current URL.
-
Method Details
-
getCurrentUrl
This method returns the current URL of the Web Client including server name, port, context path and query string. This method can only be used form within ZK context.- Returns:
- current URL of the web client
-
getQueryString
Returns the query string from the current URL. If no query string is present, an empty string is returned. The returned query string will begin with "?". This method can only be used form within ZK context.- Returns:
- current query string
-
getContextPath
Returns the current URL of the Web Client without request path and query string. This method can only be used form within ZK context.- Returns:
- current url of the Web Client without request path and query string
-
buildQueryStringFromMapList
-
buildQueryStringFromMapArray
-
buildQueryMapFromString
-