public static String encodeQueryParam ( String queryParam , String encoding ) throws UnsupportedEncodingException { return HierarchicalUriComponents . encodeUriComponent ( queryParam , encoding , HierarchicalUriComponents . Type . QUERY_PARAM ) ; }
Encodes the given URI query parameter with the given encoding .