/** * Define the DEFINITIVE URL constraint expression escape function. * * @param ce The expression to modify. * @return The escaped expression. */ public static String escapeURLQuery(String ce) { try { ce = escapeString(ce, _allowableInUrlQuery); } catch(Exception e) {ce = null;} return ce; }
/** * Define the DEFINITIVE URL escape function. * Note that the whole string is escaped, so * be careful what you pass into this procedure. * * @param s The string to modify. * @return The escaped expression. */ public static String urlEncode(String s) { //try {s = URLEncoder.encode(s,"UTF-8");} catch(Exception e) {s = null;} s = escapeString(s, _allowableInUrl); return s; }
/** * Define the DEFINITIVE URL escape function. * Note that the whole string is escaped, so * be careful what you pass into this procedure. * * @param s The string to modify. * @return The escaped expression. */ public static String urlEncode(String s) { //try {s = URLEncoder.encode(s,"UTF-8");} catch(Exception e) {s = null;} s = escapeString(s, _allowableInUrl); return s; }
/** * Define the DEFINITIVE URL constraint expression escape function. * * @param ce The expression to modify. * @return The escaped expression. */ public static String escapeURLQuery(String ce) { try { ce = escapeString(ce, _allowableInUrlQuery); } catch (Exception e) { ce = null; } return ce; }