common/src/main/java/HTTPClient/Codecs.java
/**
     * This method urlencodes the given string. This method is here for
     * symmetry reasons and just calls java.net.URLEncoder.encode().
     *
     * @param  str the string
     * @return the url-encoded string
     */
This method urlencodes the given string. This method is here for
symmetry reasons and just calls java.net.URLEncoder.encode().

@param  str the string
@return the url-encoded string
This method urlencodes the given string . This method is here for symmetry reasons and just calls java . net . URLEncoder . encode () . @param str the string @return the url - encoded string
public final static String URLEncode(String str)
    {
	if (str == null)  return  null;
	try
	{
		return java.net.URLEncoder.encode(str, "UTF-8");
	}
	catch (java.io.UnsupportedEncodingException e)
	{
		return "";
	}		
    }
public final static String URLEncode ( String str ) { if ( str == null ) return null ; try { return java . net . URLEncoder . encode ( str , "UTF-8" ) ; } catch ( java . io . UnsupportedEncodingException e ) { return "" ; } }
This method urlencodes the given string.
This method urlencodes the given string .