org.gcube.opensearch.opensearchlibrary.utils
Class URLEncoder
java.lang.Object
org.gcube.opensearch.opensearchlibrary.utils.URLEncoder
public class URLEncoder
- extends Object
A URL encoder utility that is used to URL-encode strings only if they are not already URL-encoded
- Author:
- gerasimos.farantatos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlEncode
public static String UrlEncode(String value,
String encoding)
throws UnsupportedEncodingException
- URL-encodes a String only if it is not found already URL-encoded
- Parameters:
value - The String to be URL-encodedencoding - The encoding to be used
- Returns:
- The URL-encoded string
- Throws:
UnsupportedEncodingException - If the encoding given is not supported
Copyright © 2013. All Rights Reserved.