Package com.logicaldoc.util.http
Class UrlUtil
java.lang.Object
com.logicaldoc.util.http.UrlUtil
Utility methods for handling URLs
- Since:
- 7.5.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringTranslates a string into application/x-www-form-urlencoded format using a specific encoding scheme.static StringgetQueryParam(String url, String parameter) getQueryParams(String url) static Stringstatic URL
- 
Method Details- 
getQueryParams
- 
getParamspublic static Map<String,String> getParams(String urlString) throws UnsupportedEncodingException, MalformedURLException, URISyntaxException 
- 
getQueryParampublic static String getQueryParam(String url, String parameter) throws MalformedURLException, URISyntaxException 
- 
encodeTranslates a string into application/x-www-form-urlencoded format using a specific encoding scheme. This method uses the supplied encoding scheme to obtain the bytes for unsafe characters.- Parameters:
- s- - String to be translated.
- enc- - The name of a supported character encoding.
- Returns:
- the translated String.
- Throws:
- UnsupportedEncodingException- - If the named encoding is not supported
 
- 
normalize
- 
toURL
 
-